Menu

#540 correct setup for pydev tests

pending
nobody
None
5
2011-07-05
2011-06-27
Tim Diggins
No

Although I can now run django tests using the pydev test view, it is not setting up the databases correctly, resulting in:
1) using the main rather than the test database
2) not getting the database synced with correct state initially.

This can be achieved by using the correct TestRunner... however I'm not sure if this conflicts with how pydev's unittest view is implemented.

the TestRunner, should be found from the django.conf.settings['TEST_RUNNER'] setting - by default this is django.test.simple.DjangoTestSuiteRunner, but may be changed.

Alternatively is there a way to change this from the command line, or with an environment variable?

Discussion

  • Fabio Zadrozny

    Fabio Zadrozny - 2011-07-05

    Taking a look at its code, it seems it wasn't really meant to be integrated anywhere else (i.e.: it does its work in a run_tests which expects to load things itself, so, there may be some work there integrating the pydev test runner with it).

    Still, did you check if the nose test runner is able to work with the django test runner? (as pydev can use the nose test runner, that may be a good choice)

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2011-07-05
    • status: open --> pending
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.