Re: Tests and read-only database

2015-02-11 Thread Tom Evans
On Tue, Feb 10, 2015 at 1:29 AM, Scot Hacker wrote: > My project access two databases, one of which is remote and read-only. When > running tests, Django wants to create a test_ copy of that db on the remote > host, but of course it lacks permission (I lack write access to

Re: Tests and read-only database

2015-02-10 Thread Scot Hacker
On Tuesday, February 10, 2015 at 12:55:57 AM UTC-8, Avraham Serour wrote: > > you can tell django to use sqlite for tests, it will create an in memory > sqlite > Thanks Avraham. Having a bit of trouble finding specifics on this in the documentation, but this works neatly: if 'test' in

Re: Tests and read-only database

2015-02-10 Thread Avraham Serour
you can tell django to use sqlite for tests, it will create an in memory sqlite if you need the data on the DB for the tests you can import when initializing the tests, dump a part of the data and call it test data On Tue, Feb 10, 2015 at 3:29 AM, Scot Hacker wrote: > My

Tests and read-only database

2015-02-09 Thread Scot Hacker
My project access two databases, one of which is remote and read-only. When running tests, Django wants to create a test_ copy of that db on the remote host, but of course it lacks permission (I lack write access to the entire db host). So I'm blocked from running *any* tests, even ones that