Start the DB for tests

This commit is contained in:
Andreas Zweili 2023-07-20 21:25:05 +02:00
parent 64bbd528ae
commit 7930eef582
1 changed files with 6 additions and 4 deletions

View File

@ -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
'';
};
};