From 7bdc3d4ba5bab9a97c9d60f6a5803dd260029270 Mon Sep 17 00:00:00 2001 From: Jason Munro Date: Sat, 22 Oct 2022 15:40:57 -0700 Subject: [PATCH] Update polar test --- tests/emmet-core/test_polar.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/emmet-core/test_polar.py b/tests/emmet-core/test_polar.py index bca9ccd14c..6c0c7b77b1 100644 --- a/tests/emmet-core/test_polar.py +++ b/tests/emmet-core/test_polar.py @@ -265,13 +265,13 @@ def test_piezoelectric(piezoelectric_structure): assert doc.property_name == "piezoelectric" assert doc.material_id == "mp-149" assert doc.e_ij_max == pytest.approx(0.464365904540805) - assert doc.strain_for_max == pytest.approx( + assert [abs(n) for n in doc.strain_for_max] == pytest.approx( [ - -0.0675760207481869, - -0.97358569089405, + 0.0675760207481869, + 0.97358569089405, 0.110731643941102, 0.0, - -0.187890624929232, + 0.187890624929232, 0.0, ] )