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 ];
|
||||
checkPhase = ''
|
||||
mkdir -p $out
|
||||
overmind start -D -l db
|
||||
pytest --ds=network_inventory.settings.local \
|
||||
-nauto \
|
||||
--nomigrations \
|
||||
--cov=./src \
|
||||
./src
|
||||
-nauto \
|
||||
--nomigrations \
|
||||
--cov=./src \
|
||||
./src
|
||||
overmind quit
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue