Closed mpeuss closed 4 years ago
How do you run tests?
For example, there is simple project with rangefilter
in INSTALLED_APPS. Tests from rangefilter/tests.py
are not executed.
$ python manage.py test
System check identified no issues (0 silenced).
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
Thank you for your quick response. In our projects tests are executed with py.test which finds all "test" packages. However, how are these tests supposed to be working? Migrations are missing in every case.
It is django magic ))
Ok, later I will see how to fix the tests in your case
@mpeuss Could you test the master branch in your system?
It works! The tests do not run anymore since you extracted them to a new app. The final package will only include the rangefilter app and not the tests app, correct?
No, the final package will include the tests app. It is common for packages of python and sometime the tests are answer for many questions
Ok, but nonetheless it should be working. When will you release a new version? Thanks so far for your help.
Today or tomorrow.
When the app is included in INSTALLED_APPS tests from rangefilter/tests.py are executed but fail due to missing model relations in the database.