Skip to content

Commit

Permalink
do not import RootFileInfo or test unless not on github
Browse files Browse the repository at this point in the history
  • Loading branch information
bhilbert4 committed Jan 17, 2025
1 parent c32a25a commit 0b230a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jwql/tests/test_wisp_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@
from jwql.utils.constants import ON_GITHUB_ACTIONS
from jwql.utils.utils import get_config
from jwql.website.apps.jwql.archive_database_update import files_in_filesystem
from jwql.website.apps.jwql.models import RootFileInfo

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.models import RootFileInfo


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

0 comments on commit 0b230a5

Please sign in to comment.