Skip to content

Commit

Permalink
make the comments more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
emanehab99 committed Oct 2, 2024
1 parent 2a1c093 commit ab18a70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_lfa_scheduler_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ async def test_get_scheduler_list():
scheduler.telescope = None
await scheduler.get_scheduler_list()
# No snapshots should be retreived if it isn't an LFA environment
# the dropdown has one empty option
assert len(scheduler.param.scheduler_fname.objects) >= 1


Expand All @@ -30,6 +31,8 @@ async def test_get_scheduler_list_in_USDF():
# the env variables needed for LFA mode are set
if os.environ.get("AWS_SHARED_CREDENTIALS_FILE") and os.environ.get("S3_ENDPOINT_URL"):
# at least one snapshot file should be retreived
# the dropdown should have one empty option +
# at least one snapshot
assert len(scheduler.param.scheduler_fname.objects) >= 2
scheduler.scheduler_fname = scheduler.param["scheduler_fname"].objects[1]
scheduler.read_scheduler()
Expand Down

0 comments on commit ab18a70

Please sign in to comment.