-
-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attribute error in Django 2.0 #177
Comments
@dizballanze I have not been able to reproduce this error. I have been experimenting with:
Can you provide some way to reproduce the error? If you are working on an open source project, I could try that directly. If not, it would be great if you could produce a small django project which simply reproduces the error. If you could also provide me with your OS and component versions, that may help. |
Also, what does your config file look like, and where is it located relative to your project? |
I use packages and Python version as you described above. Sometimes it raises described above error. In other tries, it raises a bunch of database errors for some of the tests while other tests pass. Some of the errors it raises:
I managed to fix this by setting
Many of |
Just a hunch, as I don't know anything about Django, but this has the hallmarks of concurrency errors. I had similar issues in another project, wherein green would through different errors on different runs, and using |
It could be the same situation. For systems not designed for concurrent testing (django), I recommend specifying in your green configuration file to use only one process.
Please let me know if that helps. If it does, then I will add that advice to the Django section of the readme. |
Hmm...if the multiprocessing ended up being the problem, it may be worth adding a feature to Green to auto-detect when it is running under Django and defaulting to 1 process in that case. |
It works with |
Okay, I'll go ahead and close this, then. |
Maybe |
That would be cool. Does Django have any documentation about how a test runner can interact with Django to support parallel tests? |
@CleanCut It is possible in the django documentation. https://docs.djangoproject.com/en/2.0/topics/testing/overview/ with the --parallel flag. BTW Thanks I had the same issue and processes=1 solved the issue. |
@charlsagente Awesome, I'm so glad it solved the problem for you! Also, thank you for the pointer to the |
Hi, seems that green doesn't work with Django 2.0.
The text was updated successfully, but these errors were encountered: