-
Notifications
You must be signed in to change notification settings - Fork 346
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
[WIP/RFC] Setup Django only later (pytest_configure) #719
Conversation
This is required for when conftests are loaded before Django gets setup (i.e. when it would be done in pytest_configure only). Not necessary, but easier to improve things from there.
Codecov Report
@@ Coverage Diff @@
## master #719 +/- ##
=====================================
Coverage 98% 98%
=====================================
Files 32 32
Lines 1853 1853
Branches 147 147
=====================================
Hits 1816 1816
Misses 24 24
Partials 13 13
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #719 +/- ##
=====================================
Coverage 98% 98%
=====================================
Files 32 32
Lines 1853 1853
Branches 147 147
=====================================
Hits 1816 1816
Misses 24 24
Partials 13 13
Continue to review full report at Codecov.
|
import django.apps | ||
assert django.apps.apps.ready | ||
from tpkg.app.models import Item |
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.
That's probably a dealbreaker: not being able to import models in your conftest at the toplevel anymore?!
Resorted to using a pytest plugin myself for now. |
No description provided.