From aa96c3b490cab9512be02155697cdb7a32b9d08c Mon Sep 17 00:00:00 2001 From: William Moore Date: Wed, 16 Jun 2021 16:53:33 +0100 Subject: [PATCH] Fix 'Fixture identity_transform called directly' test error --- tests/unit/conftest.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py index 36e0a881..d6e50da2 100644 --- a/tests/unit/conftest.py +++ b/tests/unit/conftest.py @@ -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: @@ -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)')