From 0084f6521361ca18d6b5629b88a2e73ec0e850d8 Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Thu, 8 Oct 2020 15:12:12 +0100
Subject: [PATCH] TEST: adjust [de]compose test

---
 tests/test_transform/test_affine.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tests/test_transform/test_affine.py b/tests/test_transform/test_affine.py
index f17ad4e7a..469c6c13d 100644
--- a/tests/test_transform/test_affine.py
+++ b/tests/test_transform/test_affine.py
@@ -228,6 +228,7 @@ def test_compose_and_decompose():
 
         scales, offsets, rotations, shears = affine.decompose(
             xform, shears=True)
+
         result = affine.compose(scales, offsets, rotations, shears=shears)
 
         assert np.all(np.isclose(xform, result, atol=1e-5))
@@ -236,8 +237,10 @@ def test_compose_and_decompose():
         # different rotation origin, but we test
         # explicitly passing the origin for
         # completeness
-        scales, offsets, rotations = affine.decompose(xform)
-        result = affine.compose(scales, offsets, rotations, [0, 0, 0])
+        scales, offsets, rotations, shears = affine.decompose(
+            xform, shears=True)
+        result = affine.compose(
+            scales, offsets, rotations, origin=[0, 0, 0], shears=shears)
 
         assert np.all(np.isclose(xform, result, atol=1e-5))
 
-- 
GitLab