From 7930eef582b891bf086b733211667f2d44380062 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Thu, 20 Jul 2023 21:25:05 +0200 Subject: [PATCH] Start the DB for tests --- flake.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index f2ce884..0756a9f 100644 --- a/flake.nix +++ b/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 ''; }; };