-
Notifications
You must be signed in to change notification settings - Fork 22
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
Expect fewer failing spectra #412
Conversation
* fix IRS URLs script * modified data files
I can't get pytest to output the links of the broken spectra. I'm struggling with the |
This also passes the scheduled checks: https://github.com/SIMPLE-AstroDB/SIMPLE-db/actions/runs/6562378511 |
tests/scheduled_checks.py
Outdated
@@ -62,5 +62,7 @@ def test_spectra_urls(db): | |||
if status_code != 200 and status_code != 301: | |||
broken_urls.append(spectrum_url) | |||
codes.append(status_code) | |||
assert (149 <= len(broken_urls) <= 150 | |||
print(f"found {len(broken_urls)} broken spectra urls: {broken_urls}, {codes}") | |||
assert (39 <= len(broken_urls) <= 40 | |||
), f"found {len(broken_urls)} broken spectra urls: {broken_urls}, {codes}" |
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 can probably remove the second instance of the print statement since the first one will always appear and the second will appear when the assertion fails (so the same line would be printed twice). Only a minor note, though.
Making a new branch to test out the fixed IRS spectra.