Skip to content

Commit b5d3414

Browse files
committed
Further tweak IntegrationTestDataDeriveUtil skip.
1 parent 8dda38d commit b5d3414

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

python/services/dataservice/dmod/test/it_data_derive_util.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,7 @@ def source_test_env_file(cls):
4242
explicit_on = os.environ.get("DERIVE_UTIL_IT_ON", "false").strip().lower() == "true"
4343
reason_str = (f"IntegrationTestDataDeriveUtil tests skipped locally; you can activate by setting 'DERIVE_UTIL_IT_ON' "
4444
f"to 'true' in your project '{TestBase._TEST_ENV_FILE_BASENAME}' file.")
45-
try:
46-
import pytest
47-
skip_unless_explicit = pytest.mark.skipif(not explicit_on, reason=reason_str)
48-
except ImportError as e:
49-
skip_unless_explicit = unittest.skipUnless(explicit_on, reason=reason_str)
45+
skip_unless_explicit = unittest.skipUnless(explicit_on, reason=reason_str)
5046

5147

5248
@skip_unless_explicit
@@ -166,6 +162,7 @@ def tearDown(self):
166162
continue
167163
ds.manager.delete(dataset=ds)
168164

165+
@skip_unless_explicit
169166
def test__generate_bmi_ds_1_a(self):
170167
""" Test to see if auto-generation of BMI config dataset will work as expected in object store dataset. """
171168
ds_name = self.test_1_bmi_ds_name

0 commit comments

Comments
 (0)