-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Error when trying to migrate from python manage.py test to pytest #3347
Comments
GitMate.io thinks possibly related issues are #1685 (python setup.py test fails to install pytest), #3245 (py.test on pytest fails when not limiting to the testing folder), #18 (pytest-2.0.0 fails testing/test_nose.py on python-3.1.3), #3163 (Pytest internal error due to infinite recursion on final test), and #1484 (running py.test). |
This looks like an incompatible version of
You seem to not have configured Django correctly - the SECRET_KEY is not defined in the settings?! |
SECRET_KEY: |
It looks like tox might crash earlier already. |
as first part, please upgrade attrs or downgrade pytest - its required for compatibility |
I had the same problem, but with Travis CI. In my local machine worked fine, but Travis started giving me that error after upgrading to pytest 3.5.0. I had to pin |
Yeah, it seems another case where |
I believe I made all the necessary configurations to run the test using pytest, but still I'm getting an error message that is not exactly clear or helpfull at all. When I try to run the tests using
tox
command, I get the following:and when I run only using pytest, I get the following:
What exactly does
AttributeError: 'module' object has no attribute 'converters'
means? What am I missing in my configurations? Here are some other informations:Operating System is CentOS Linux release 7.4.1708 (Core) (inside a VM with Vagrant)
Also, here is the contents of my
tox.ini
and also here is the contents of my
pytest.ini
:pip list
of the virtual environment you are usingThe text was updated successfully, but these errors were encountered: