-
Notifications
You must be signed in to change notification settings - Fork 116
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
test case issues #132
Comments
I setup a virtual environment with
Let me know if you want to see my environment configuration 📦 |
@claytondaley I'll take a look at why tests are not running and give you a suggestion. |
@claytondaley I think we had the wrong description about running tests locally, because tox is usually used on CI. So, I've updated the instruction about running tests in README.md. # Setup the virtual environment
python3 -m venv envname
source envname/bin/activate
pip install django
pip install django-rest-framework
pip install -r requirements.txt
# Run tests
py.test |
OK. Operator error. I had models outside |
@claytondaley It's very strange because six isn't used anymore in Django and DRF since dropping python2. Maybe you have previous versions installed? |
@claytondaley Try to update python-django version to the latest |
I'm actually running a
The
... and it works so I'll PR that change so we can verify it doesn't break other environments. |
I've tried both PyCharm and the command line (from readme) to run the tox tests. I'm running into (at least) two issues:
six
(No module named 'six'
) which I can resolve by adding six torequirements.txt
no such table: ...
I think I've seen something similar when tests have been run without the Django extension, but I'm confused why the documented process isn't working.
The text was updated successfully, but these errors were encountered: