Skip to content

Commit

Permalink
Fix 'Fixture identity_transform called directly' test error
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Jun 16, 2021
1 parent d85688b commit aa96c3b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def populate_shape(o, set_unit_attributes=True):
o.theC = rint(1)
o.theT = rint(2)
o.theZ = rint(3)
t = identity_transform()
t = get_identity_transform()
if SCHEMA_VERSION == '2015-01':
o.transform = t.svg_transform
else:
Expand All @@ -516,6 +516,10 @@ def populate_shape(o, set_unit_attributes=True):

@pytest.fixture()
def identity_transform():
return get_identity_transform()


def get_identity_transform():
t = AffineTransformI()
if SCHEMA_VERSION == '2015-01':
t.convert_svg_transform('matrix(1 0 0 1 0 0)')
Expand Down

0 comments on commit aa96c3b

Please sign in to comment.