Skip to content
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

Merged
merged 10 commits into from
Oct 18, 2023
Merged

Expect fewer failing spectra #412

merged 10 commits into from
Oct 18, 2023

Conversation

kelle
Copy link
Collaborator

@kelle kelle commented Oct 17, 2023

Making a new branch to test out the fixed IRS spectra.

@kelle kelle marked this pull request as draft October 17, 2023 22:05
@kelle
Copy link
Collaborator Author

kelle commented Oct 17, 2023

I can't get pytest to output the links of the broken spectra. I'm struggling with the pytest options for output.

@kelle kelle marked this pull request as ready for review October 17, 2023 22:40
@kelle
Copy link
Collaborator Author

kelle commented Oct 17, 2023

Finally got the pytest output to work the way I wanted!

This PR closes #347.

I'll open a new one (#413) for the 39 spectra which continue to be broken.

@kelle kelle added this to the 2023.3 milestone Oct 18, 2023
@kelle
Copy link
Collaborator Author

kelle commented Oct 18, 2023

This also passes the scheduled checks: https://github.com/SIMPLE-AstroDB/SIMPLE-db/actions/runs/6562378511

@@ -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}"
Copy link
Collaborator

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.

@kelle kelle merged commit 9f99665 into main Oct 18, 2023
3 checks passed
@kelle kelle deleted the kelle-fix-irs-spectra branch October 18, 2023 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants