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

Docs: testing + debug mode #3780

Open
romuald opened this issue Oct 7, 2024 · 0 comments
Open

Docs: testing + debug mode #3780

romuald opened this issue Oct 7, 2024 · 0 comments
Labels
Documentation 📚 This is related to documentation

Comments

@romuald
Copy link

romuald commented Oct 7, 2024

Summary

As a new litestar user, I've just started looking at documentation to test my application.

With the default example, un-handled errors are simply turning up as 500 internal server error without much to use.

Simply setting app.debug = True inside the test module is enough to have a proper traceback.

Would it be possible to add this line on the first examples? Maybe there is a better way?


Looking up a the source for AsyncTestClient I see that there is a raise_server_exceptions option (in my case it is set to True, the default)


Note

While we are open for sponsoring on GitHub Sponsors and
OpenCollective, we also utilize Polar.sh to engage in pledge-based sponsorship.

Check out all issues funded or available for funding on our Polar.sh dashboard

  • If you would like to see an issue prioritized, make a pledge towards it!
  • We receive the pledge once the issue is completed & verified
  • This, along with engagement in the community, helps us know which features are a priority to our users.
Fund with Polar
@romuald romuald added the Documentation 📚 This is related to documentation label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation 📚 This is related to documentation
Projects
None yet
Development

No branches or pull requests

1 participant