Skip to content
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

Documentation on test is missing #24

Closed
gustabot42 opened this issue Jun 21, 2019 · 1 comment

Comments

@gustabot42
Copy link

commented Jun 21, 2019

dev requirements:

pip install mock_django

manage.py:

#!/usr/bin/env python
import os
import sys

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_settings")

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)
@wimglenn

This comment has been minimized.

Copy link
Owner

commented Jun 27, 2019

Nope, writing a manage.py is not needed, because I use pytest-django plugin. Other dev requirements (including the mock_django) are listed in a setuptools extra, here. So, the correct way is simply:

pip install --editable ".[dev]"
pytest

I've now added some dev instructions onto the landing page in b0aed3e

@wimglenn wimglenn closed this Jun 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.