-
Notifications
You must be signed in to change notification settings - Fork 347
Does fixtures work across applications? #508
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
Comments
I do notice that my application without the conftest.py runs before the application that holds the conftest.py. My intuition was perhaps conftest.py fixtures would be aggregated or there would be a place to store them. A second thing I noticed: the class UserFactory(factory.django.DjangoModelFactory):
class Meta:
model = get_user_model()
username = factory.Sequence(lambda n: "user%03d" % n)
password = factory.Sequence(lambda n: "pass%03d" % n)
register(UserFactory) I'm going to make an issue over there to rule out if this behavior is on pytest-django, factory_boy, or my end. |
No, fixtures defines in a conftest only apply to the directory tree in which the conftest is located. Sorry, I do not understand the rest of the comment. |
@bluetech Thank you very much. I am not familiar with the context I originally had for this message - if I remember I will bring it up For now I will consider this issue addressed |
Assume this structure:
is pytest-django designed to have conftest's fixtures available project wide, so this_this.py in app2 would have access to it?
(I'm trying to determine if this is an issue on my end, a bug or a feature request)
The text was updated successfully, but these errors were encountered: