Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
No need to make straxen modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed Jan 16, 2024
1 parent 57124be commit f6e3565
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 0 additions & 12 deletions tests/test_contexts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit f6e3565

Please sign in to comment.