Re: PyCharm & tests/runtests.py

2016-12-22 Thread Vimarsh Chaturvedi
Hey Lex, To run the tests in PyCharms I followed the following steps: 1) In Run -> Edit Configurations, I created a new Configuration. 2) In the script field I gave the path to the runtests.py file and gave script parameter as one of the test files since I only wanted to run the tests present

Re: PyCharm & tests/runtests.py

2016-12-10 Thread Tim Graham
Please add new operations to the existing migrations manually. See a previous commit on the file for an example: https://github.com/django/django/commit/094d630ae8d8e5e68817c313da0fd737898b216b I'm not a PyCharm user so I'm not sure about that part. On Saturday, December 10, 2016 at 11:20:17 AM

Re: PyCharm & tests/runtests.py

2016-12-10 Thread lex
Somewhat related follow up question: I have added a new model to django/tests/postgres/models.py, how do I now run makemigrations to generate a new migration for this model? Since the settings necessary to work with the test scaffolding is embedded in runtests.py I can't figure out how to use a

PyCharm & tests/runtests.py

2016-12-10 Thread lex
Hello, Does anyone here use PyCharm to hack on django? How do you run the unit tests? Specifically, PyCharm has its own runner and django has it's own runner in tests/runtests.py. It appears that the main thing I need from runtests.py is the settings. Is there a good way to extract the necessa