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