Skip to content

Commit

Permalink
Further tweak IntegrationTestDataDeriveUtil skip.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbartel committed Jul 8, 2024
1 parent fdc5513 commit 8dc12bb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions python/services/dataservice/dmod/test/it_data_derive_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,7 @@ def source_test_env_file(cls):
explicit_on = os.environ.get("DERIVE_UTIL_IT_ON", "false").strip().lower() == "true"
reason_str = (f"IntegrationTestDataDeriveUtil tests skipped locally; you can activate by setting 'DERIVE_UTIL_IT_ON' "
f"to 'true' in your project '{TestBase._TEST_ENV_FILE_BASENAME}' file.")
try:
import pytest
skip_unless_explicit = pytest.mark.skipif(not explicit_on, reason=reason_str)
except ImportError as e:
skip_unless_explicit = unittest.skipUnless(explicit_on, reason=reason_str)
skip_unless_explicit = unittest.skipUnless(explicit_on, reason=reason_str)


@skip_unless_explicit
Expand Down Expand Up @@ -166,6 +162,7 @@ def tearDown(self):
continue
ds.manager.delete(dataset=ds)

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

0 comments on commit 8dc12bb

Please sign in to comment.