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 the entire
> db host). S
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 sys.argv
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 project access two data
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 don
4 matches
Mail list logo