From 2f6ac0be9f2ff81fae3827db9be1c05eb3edf307 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Thu, 7 Jul 2022 08:46:38 +0200 Subject: [PATCH] Fix test_wall_opening invocation --- src/ifcopenshell-python/test/test_wall_opening.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/test/test_wall_opening.py b/src/ifcopenshell-python/test/test_wall_opening.py index 75da8af33d..f331297e73 100644 --- a/src/ifcopenshell-python/test/test_wall_opening.py +++ b/src/ifcopenshell-python/test/test_wall_opening.py @@ -145,7 +145,7 @@ def create_case(fn, openings): class TestWallOpenings: - @pytest.mark.skipif(shutil.which("IfcConvert"), reason="Requires IfcConvert in path") + @pytest.mark.skipif(shutil.which("IfcConvert") is None, reason="Requires IfcConvert in path") def test_all(self): cases = [ @@ -245,4 +245,4 @@ class TestWallOpenings: if __name__ == "__main__": - TestWallOpenings().test_all() + pytest.main(["-x", __file__])