Hi All,
I took over some projects written with Python 2.7 / Django 1.5.1.
For unit tests the django-nose 1.2 (nose 1.3.3) is used and the project structure has its own tests directory which contains the testrunner.py.
As a development environment I use PyCharm.
As I wanted to run the unit tests I created a new run/debug configuration.
I did not add any Target. Just the Environment variable for DJANGO_SETTINGS_MODULE and a working directory.
But when I run/debug the tests, I always get a 'TransactionManagementError: Transaction managed block ended with pending COMMIT/ROLLBACK
It also say that no tests were found but the test DB was created.
Do you have any hints?
Connected to pydev debugger (build 141.1899)
/home/schaf/workspace/Solution/env/bin/python /home/schaf/Schreibtisch/pycharm-4.5.3/helpers/pydev/pydevd.py --multiproc --client 127.0.0.1 --port 60525 --file /home/schaf/Schreibtisch/pycharm-4.5.3/helpers/pycharm/django_test_manage.py test /home/schaf/workspace/Solution
Testing started at 10:24 ...
pydev debugger: process 5727 is connecting
nosetests tests.testUrlAnalyzer --with-coverage --cover-html --cover-html-dir=./tests/coverage --cover-erase --cover-package=UrlAnalyzer --verbosity=1
Creating test database for alias 'default'...
TransactionManagementError: Transaction managed block ended with pending COMMIT/ROLLBACK
Process finished with exit code 1
Empty test suite.
Thanks
schaf