You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I'm opening this issue because I have found a strange behaviour.
I have developed a web application using Django, mongodb for database and nose for tests.
So nose-mongoengine fits perfectly in my project.
When I run the tests directly from nose:
nosetests --mongoengine
It works as expected: a mongo instance is launched, a DB is created and then everything is cleaned.
However when I run it from Django like:
./manage.py test
which executes the following:
nosetests --mongoengine --verbosity=1
it won't launch mongo nor will create a new DB. It will use instead the DB configured in Django's settings.py, causing the tests to fail.
Is this behaviour expected? Any hint how can I solve it?
The text was updated successfully, but these errors were encountered:
Problema:
nosetests --mongoengine borme/tests/test_borme_foo.py
va bien porque carga el plugin, levanta mongo, crea la BD, ejecuta tests y limpia.
Pero si se ejecuta mediante manage.py (django-nose) no y coge la BD que usa la aplicacion web.
./manage.py test libreborme/tests/test_http.py
DJANGO_SETTINGS_MODULE=libreborme.settings nosetests --mongoengine borme/tests/test_borme_foo.py
Issue en github: mbanton/nose-mongoengine#4
Problema:
nosetests --mongoengine borme/tests/test_borme_foo.py
va bien porque carga el plugin, levanta mongo, crea la BD, ejecuta tests y limpia.
Pero si se ejecuta mediante manage.py (django-nose) no y coge la BD que usa la aplicacion web.
./manage.py test libreborme/tests/test_http.py
DJANGO_SETTINGS_MODULE=libreborme.settings nosetests --mongoengine borme/tests/test_borme_foo.py
Issue en github: mbanton/nose-mongoengine#4
Hello. I'm opening this issue because I have found a strange behaviour.
I have developed a web application using Django, mongodb for database and nose for tests.
So nose-mongoengine fits perfectly in my project.
When I run the tests directly from nose:
It works as expected: a mongo instance is launched, a DB is created and then everything is cleaned.
However when I run it from Django like:
which executes the following:
it won't launch mongo nor will create a new DB. It will use instead the DB configured in Django's settings.py, causing the tests to fail.
Is this behaviour expected? Any hint how can I solve it?
The text was updated successfully, but these errors were encountered: