From 71e383bfc8138e31bcbf53dd803e77c913c41425 Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Mon, 20 Feb 2023 14:44:40 -0500 Subject: [PATCH] test for ValueError --- python/tests/test_mechanics.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/tests/test_mechanics.py b/python/tests/test_mechanics.py index 667747f8e..8557587fe 100644 --- a/python/tests/test_mechanics.py +++ b/python/tests/test_mechanics.py @@ -215,3 +215,7 @@ class TestMechanics: def test_invalid_decomposition(self): with pytest.raises(ValueError): mechanics._polar_decomposition(np.random.rand(10,3,3),'A') + + def test_invalid_strain(self): + with pytest.raises(ValueError): + mechanics.strain(np.random.rand(10,3,3),'A',0)