Open titovanton opened 2 years ago
I'm suddenly facing this issue as well, did you ever find a solution @titovanton ?
I'm suddenly facing this issue as well, did you ever find a solution @titovanton ?
nope
Hi there, I'm also facing a similar issue. Would be great if a workaround ( if any ) for this issue could be shared here.
@AnonSar @titovanton @SHxKM Could it be that this issue is due to having multiple test database configs? I had the same problem when trying to run test with these test settings:
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql",
...
},
'sqlite': {
'ENGINE': 'django.db.backends.sqlite3'
}
}
Removing the sqlite
config fixed the issue and let me run pytest without the --no-migrations
flag.
@AnonSar @titovanton @SHxKM Could it be that this issue is due to having multiple test database configs? I had the same problem when trying to run test with these test settings:
DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql", ... }, 'sqlite': { 'ENGINE': 'django.db.backends.sqlite3' } }
Removing the
sqlite
config fixed the issue and let me run pytest without the--no-migrations
flag.
This actually worked for me too when I tried it a few mins ago. I do not know why it caused that problem yet though. Thank you
Hello! I got the following, when I run
pytest
:applable_modelname
- that's for example ofcz :)That happens when I call
pytest
. When I specify--reuse-db --nomigrations
- tests are passed. That makes me think, that the issue is not in my migrations. What do I do wrong and how to fix it? Thanks!