-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
LookupError: No installed app with label 'tests' #192
Comments
Hi @Arussil, is your app named "tests" tests? Because, from the project docs: You don’t have to place necessarily your So, probably your call is missing the app name before the |
Hello @berinhard , maybe i wasn't so clear on my example :D This is the project folder:
"tests" it's not a django app and so it's not in INSTALLED_APPS: this setup worked with model_bakery 1.2.1, before the change to _recipe. |
Ow, I see! Thanks the explanation @Arussil! So, this is definitely a bug introduced by 1.2.1. |
@Arussil In your example, you call |
Short summary.
Expected behavior
I have a tests folder which contains baker_recipes, conftest, test files etc... #140 this worked:
Actual behavior
After installing latest model_bakery i get this error:
As "tests.item_recipe" is interpreted as a django app by _recipe:
Possible solutions:
Moving baker_recipes.py in his own module inside tests does work, but something like:
could probably work, haven't had the time to test it.
Versions
Python: 3.8.7
Django: 2.2.22
Model Bakery: 1.3.1
The text was updated successfully, but these errors were encountered: