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

Preserve 500-error in test #2861

Merged
merged 1 commit into from Mar 7, 2024
Merged

Preserve 500-error in test #2861

merged 1 commit into from Mar 7, 2024

Conversation

hmpf
Copy link
Contributor

@hmpf hmpf commented Mar 5, 2024

On (some?) 500-errors, content Page.content_type does not have the method "lower", triggering a new exception that makes more of a hassle finding what caused the 500.

A request that returns with a 500 response-code has no HTML to validate anyway so let's just bail.

@hmpf hmpf requested a review from lunkwill42 March 5, 2024 07:10
@hmpf hmpf self-assigned this Mar 5, 2024
@hmpf hmpf added the tests label Mar 5, 2024
Copy link

codecov bot commented Mar 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.69%. Comparing base (6e728fc) to head (e9c0b78).
Report is 2 commits behind head on master.

❗ Current head e9c0b78 differs from pull request most recent head 90f3652. Consider uploading reports for the commit 90f3652 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2861   +/-   ##
=======================================
  Coverage   56.69%   56.69%           
=======================================
  Files         602      602           
  Lines       43971    43971           
=======================================
  Hits        24931    24931           
  Misses      19040    19040           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

sonarcloud bot commented Mar 7, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

On (some?) 500-errors, content Page.content_type does not have the
method "lower", triggering a new exception that makes more of a hassle
finding what caused the 500.

A request that returns with a 500 response-code has no HTML to validate
anyway so let's just bail.
@hmpf hmpf merged commit 9cfd877 into Uninett:master Mar 7, 2024
7 of 8 checks passed
@hmpf hmpf deleted the stop-hiding-500 branch March 7, 2024 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants