Re: Adding new models to test Django unit test case

2016-08-15 Thread Tim Graham
We can continue the discussion on the pull request. Also, you can use the #django-dev IRC channel to get more immediate feedback. On Monday, August 15, 2016 at 2:50:32 PM UTC-4, premdjango wrote: > > My pull requests failed - https://github.com/django/django/pull/7094 > > Looks like the test is r

Re: Adding new models to test Django unit test case

2016-08-15 Thread premdjango
My pull requests failed - https://github.com/django/django/pull/7094 Looks like the test is running by default against sqllite. How do I run it against the postgres? On Monday, August 15, 2016 at 1:48:48 PM UTC-4, premdjango wrote: > > It worked..thanks. > > On Monday, August 15, 2016 at 1:12:52

Re: Adding new models to test Django unit test case

2016-08-15 Thread premdjango
It worked..thanks. On Monday, August 15, 2016 at 1:12:52 PM UTC-4, Tim Graham wrote: > > You'll need to modify the migrations manually. Take a look at a previous > commit on the migrations files for an example. > > On Monday, August 15, 2016 at 1:00:42 PM UTC-4, premdjango wrote: >> >> Thanks. >>

Re: Adding new models to test Django unit test case

2016-08-15 Thread Tim Graham
You'll need to modify the migrations manually. Take a look at a previous commit on the migrations files for an example. On Monday, August 15, 2016 at 1:00:42 PM UTC-4, premdjango wrote: > > Thanks. > How do I run the migrations? > > I tried python manage.py makemigrations but dont see the manage.

Re: Adding new models to test Django unit test case

2016-08-15 Thread premdjango
Thanks. How do I run the migrations? I tried python manage.py makemigrations but dont see the manage.py module anywhere. On Monday, August 15, 2016 at 7:18:33 AM UTC-4, Tim Graham wrote: > > Migrations will run automatically but you need to add the models to the > migrations in tests/postgres_t

Re: Adding new models to test Django unit test case

2016-08-15 Thread Tim Graham
Migrations will run automatically but you need to add the models to the migrations in tests/postgres_tests/migrations. On Sunday, August 14, 2016 at 10:53:45 PM UTC-4, premdjango wrote: > > I'm implementing a fix for a ticket-26819 and need to add new models to > test it. > > The new models were

Adding new models to test Django unit test case

2016-08-14 Thread premdjango
I'm implementing a fix for a ticket-26819 and need to add new models to test it. The new models were added to tests/postgres_tests/models.py but would like to know how to run the migrations before I run the tests. Do I need to run the migrations explicitly or django run tests will take care of