| From: | Chris Withers <chris(at)simplistix(dot)co(dot)uk> |
|---|---|
| To: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: create create of database of a particular name |
| Date: | 2016-03-09 15:02:45 |
| Message-ID: | 56E03B15.3030501@simplistix.co.uk |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On 09/03/2016 14:53, Adrian Klaver wrote:
> On 03/09/2016 05:49 AM, Chris Withers wrote:
>> Hi All,
>>
>> Django, a popular python web framework, runs its unit tests by creating
>> a 'test_'-prefixed database and then dropping it at the end of the test
>> run.
>
> FYI in Django 1.8+ you can prevent that:
>
> https://docs.djangoproject.com/en/1.8/topics/testing/overview/#the-test-database
>
>
> " New in Django 1.8:
>
> You can prevent the test databases from being destroyed by adding the
> --keepdb flag to the test command. This will preserve the test database
> between runs. If the database does not exist, it will first be created.
> Any migrations will also be applied in order to keep it up to date.
> "
...and we're on 1.7 :-(
Chris
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Adrian Klaver | 2016-03-09 15:06:05 | Re: create create of database of a particular name |
| Previous Message | Adrian Klaver | 2016-03-09 14:53:34 | Re: create create of database of a particular name |