Skip to content

Commit

Permalink
Skip test if on github
Browse files Browse the repository at this point in the history
  • Loading branch information
bhilbert4 committed Jan 16, 2025
1 parent 1ad2d84 commit bd3175c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions jwql/tests/test_bokeh_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@

from jwql.utils.constants import DEFAULT_MODEL_CHARFIELD, ON_GITHUB_ACTIONS, ON_READTHEDOCS

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "jwql.website.jwql_proj.settings")

# Skip testing this module if on Github Actions
from jwql.website.apps.jwql import bokeh_dashboard # noqa: E402 (module level import not at top of file)

if not ON_GITHUB_ACTIONS and not ON_READTHEDOCS:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "jwql.website.jwql_proj.settings")
setup()
from jwql.website.apps.jwql import bokeh_dashboard # noqa: E402 (module level import not at top of file)


@pytest.mark.skipif(ON_GITHUB_ACTIONS, reason='Requires access to django models.')
Expand Down

0 comments on commit bd3175c

Please sign in to comment.