Re: Running Django-Test fails with TransactionManagementError

2016-04-15 Thread John Griebel
Glad to hear it, sorry I wasn't more help. On Fri, Apr 15, 2016 at 10:49 AM, wrote: > Hey John, > cool it runs now. > I had multiple problems: > > 1.) I granted ALL rights to my user on the test DB. > ==> This solved the issue with the TransactionManagementError. > > 2.) I had to do some changes

Re: Running Django-Test fails with TransactionManagementError

2016-04-15 Thread schaf . mh
Hey John, cool it runs now. I had multiple problems: 1.) I granted ALL rights to my user on the test DB. ==> This solved the issue with the TransactionManagementError. 2.) I had to do some changes in my configuration and play around. Afterwards the tests were running. But not all green :-| Tha

Re: Running Django-Test fails with TransactionManagementError

2016-04-15 Thread schaf . mh
No I have not added a target. The reason is that there is a class deriving from NoseTestSuiteRunner. This class defines the run_tests function which modifies the test_labels passed to the base 'constructor'. If I add a Target for a single test (testclass.testMethod) then just this test method wo

Re: Running Django-Test fails with TransactionManagementError

2016-04-15 Thread John Griebel
The next step (for me at least) would be to start removing/commenting out things from the tests file until you stop getting the error. Hopefully that will tell you what statement(s) may be causing the problem. Although I fear you may be correct in thinking this is a configuration issue. Have you t

Re: Running Django-Test fails with TransactionManagementError

2016-04-15 Thread schaf . mh
Hi John, I did now comment out those two files, but still get the same error. Maybe I have a wrong configuration or so. I'm quite new in Django / Python. Regards schaf Am Freitag, 15. April 2016 15:11:40 UTC+2 schrieb John Griebel: > > That's what I would try. > > On Fri, Apr 15, 2016 at 9:02 AM

Re: Running Django-Test fails with TransactionManagementError

2016-04-15 Thread John Griebel
That's what I would try. On Fri, Apr 15, 2016 at 9:02 AM, wrote: > Hi John, > thanks, but I did already check for @transaction.commit_manually in the > code, but PyCHarm serahc just finds this in the > virtualenv/python2.7/site-packages/django_extensions/management/commands. > So in my code ther

Re: Running Django-Test fails with TransactionManagementError

2016-04-15 Thread schaf . mh
Hi John, thanks, but I did already check for @transaction.commit_manually in the code, but PyCHarm serahc just finds this in the virtualenv/python2.7/site-packages/django_extensions/management/commands. So in my code there is nothing, would you recommend to comment those out, even if it is not

Re: Running Django-Test fails with TransactionManagementError

2016-04-15 Thread John Griebel
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, wrote: > Hi All, > I took over some projects written with Python 2.7 / Django 1.5.1. > For unit tests

Running Django-Test fails with TransactionManagementError

2016-04-15 Thread schaf . mh
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