-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DM-44386: Test every page endpoint for loading success #206
Conversation
20f2829
to
76b6fcc
Compare
76b6fcc
to
a357b5e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍. I've left a couple comments, but the PR is approved 😉.
tests/handlers/external_test.py
Outdated
all_cams = [f"{summit.name}/{cam.name}" for cam in summit.cameras] | ||
online_cams = [f"{summit.name}/{cam.name}" for cam in summit.cameras if cam.online] | ||
camera_historical = [f"{cam}/historical" for cam in online_cams] | ||
camera_dates = [f"{cam}/date/{day_obs}" for cam in online_cams if cam] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does only this case use the if cam
checking? (when iterating over online_cams
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good spot, thanks! It's redundant.
tests/handlers/external_test.py
Outdated
|
||
# TODO: This needs not to be just a success, but a page with a | ||
# 'nothing for this day' message. | ||
# See DM-45327 https://rubinobs.atlassian.net/browse/DM-45327 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We closed this ticket, so should this part change? at least remove the TODO perhaps? If there is still work to do, please add another ticket 🙏.
adad56e
to
5aaf5ec
Compare
Also test for invalid dates