From c6276bec150dcb43bcffacf3a85b2025495b28e6 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 22 Jul 2024 14:51:22 +0200 Subject: [PATCH] skip tests that use spec on runners without --- tests/field/test_normal_field.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/field/test_normal_field.py b/tests/field/test_normal_field.py index 45e217aee..e53b23eb0 100644 --- a/tests/field/test_normal_field.py +++ b/tests/field/test_normal_field.py @@ -352,6 +352,7 @@ def test_empty_init(self): coil_normal_field = CoilNormalField() self.assertIsNotNone(coil_normal_field) + @unittest.skipIf(py_spec is None, "py_spec not found") def test_spec_coil_correspondence_on_converged_output(self): # Init from SPEC input file with ScratchDir("."): @@ -396,6 +397,7 @@ def test_vns_vns_setter_raises(self): with self.assertRaises(AttributeError): coil_normal_field.set_vns_vnc_asarray(coil_normal_field.vns, coil_normal_field.vnc) + @unittest.skipIf(py_spec is None, "py_spec not found") def test_reduce_coilset(self): """ test if the coilset can be reduced, and