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

fix: return 500 status code when route raise #382

Merged
merged 1 commit into from
Jan 30, 2023

Conversation

AntoineRR
Copy link
Collaborator

Description

This PR fixes #381

@netlify
Copy link

netlify bot commented Jan 29, 2023

Deploy Preview for robyn canceled.

Name Link
🔨 Latest commit ff5719f
🔍 Latest deploy log https://app.netlify.com/sites/robyn/deploys/63d7fa8bd88a590008d95b78

Copy link
Member

@sansyrox sansyrox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work on the PR @AntoineRR 😄

I just have one suggestion 😄

Comment on lines 25 to 33

def test_500_internal_server_error(session):
r = requests.get(f"{BASE_URL}/sync/raise")
assert r.status_code == 500
r = requests.get(f"{BASE_URL}/async/raise")
assert r.status_code == 500
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @AntoineRR ,

Let's split this test into two? It is easier to read the test logs and to use the pytest -k option to filter the tests

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good point, fixed it

Copy link
Member

@sansyrox sansyrox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@sansyrox sansyrox merged commit de27fd3 into sparckles:main Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Return 500 status code when route is raising
2 participants