From f6e35652692488a9d696c79bc3cf8941d36dd6ac Mon Sep 17 00:00:00 2001 From: dachengx Date: Tue, 16 Jan 2024 01:34:30 -0600 Subject: [PATCH] No need to make straxen modifications --- .github/workflows/pytest.yml | 4 ++-- tests/test_contexts.py | 12 ------------ 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 0b77ef78..96b23b26 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -84,8 +84,8 @@ jobs: # We need to check if we have access to the secrets, otherwise coveralls # will yield a low coverage because of the lack of interfacing with the # database. - HAVE_ACCESS_TO_SECTETS: ${{ secrets.RUNDB_API_URL }} - if: matrix.test == 'coveralls' && env.HAVE_ACCESS_TO_SECTETS != null + HAVE_ACCESS_TO_SECRETS: ${{ secrets.RUNDB_API_URL }} + if: matrix.test == 'coveralls' && env.HAVE_ACCESS_TO_SECRETS != null run: | coverage run --source=wfsim setup.py test -v coveralls --service=github diff --git a/tests/test_contexts.py b/tests/test_contexts.py index 54c6909c..86666fe6 100644 --- a/tests/test_contexts.py +++ b/tests/test_contexts.py @@ -31,10 +31,6 @@ def test_nt_context(register=None, context=None): # Simulation contexts are only tested when special flags are set -@skipIf( - "ALLOW_WFSIM_TEST" not in os.environ, - "if you want test wfsim context do `export 'ALLOW_WFSIM_TEST'=1`", -) class TestSimContextNT(TestCase): @staticmethod def context(*args, **kwargs): @@ -81,19 +77,11 @@ def test_nt_sim_context_bad_inits(self): ) -@skipIf( - "ALLOW_WFSIM_TEST" not in os.environ, - "if you want test wfsim context do `export 'ALLOW_WFSIM_TEST'=1`", -) def test_sim_context(): straxen.contexts.xenon1t_simulation() @skipIf(not straxen.utilix_is_configured(), "No db access, cannot test!") -@skipIf( - "ALLOW_WFSIM_TEST" not in os.environ, - "if you want test wfsim context do `export 'ALLOW_WFSIM_TEST'=1`", -) def test_sim_offline_context(): wfsim.contexts.xenonnt_simulation_offline( run_id="026000",