If you have methods using the @transaction.commit_manually decorator,
comment those out temporarily. You should get a more helpful error message
after doing so.

On Fri, Apr 15, 2016 at 4:44 AM, <[email protected]> wrote:

> 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
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/ca1ca36f-0e7a-4da4-8f69-cc5c4b29a7c7%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/ca1ca36f-0e7a-4da4-8f69-cc5c4b29a7c7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOK12Wb74Fa1EqLLwOvtorYssbRWxHLxyDz27KmxvrRJa6QJYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to