Start the DB for tests
This commit is contained in:
parent
64bbd528ae
commit
7930eef582
10
flake.nix
10
flake.nix
|
@ -85,11 +85,13 @@
|
||||||
checkInputs = [ pkgs.inventoryDevEnv pkgs.postgresql_15 pkgs.overmind ];
|
checkInputs = [ pkgs.inventoryDevEnv pkgs.postgresql_15 pkgs.overmind ];
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
|
overmind start -D -l db
|
||||||
pytest --ds=network_inventory.settings.local \
|
pytest --ds=network_inventory.settings.local \
|
||||||
-nauto \
|
-nauto \
|
||||||
--nomigrations \
|
--nomigrations \
|
||||||
--cov=./src \
|
--cov=./src \
|
||||||
./src
|
./src
|
||||||
|
overmind quit
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue