diff options
author | Symphorien Gibol <symphorien+git@xlumurb.eu> | 2020-04-11 12:00:00 +0000 |
---|---|---|
committer | Symphorien Gibol <symphorien+git@xlumurb.eu> | 2020-07-06 18:35:20 +0200 |
commit | 7971042b202f680e4683f26acc3580e0999126b6 (patch) | |
tree | 537b5e55917b0b3d0044d85dcec5de2ca70e8697 /nixos/tests/ihatemoney.nix | |
parent | dc80d7bc4a244120b3d766746c41c0d9c5f81dfa (diff) |
nixos/tests/ihatemoney: fix
Diffstat (limited to 'nixos/tests/ihatemoney.nix')
-rw-r--r-- | nixos/tests/ihatemoney.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/nixos/tests/ihatemoney.nix b/nixos/tests/ihatemoney.nix index 7df0ea0b691f..a1160bbbbd54 100644 --- a/nixos/tests/ihatemoney.nix +++ b/nixos/tests/ihatemoney.nix @@ -1,5 +1,11 @@ +{ system ? builtins.currentSystem, + config ? {}, + pkgs ? import ../.. { inherit system config; } +}: + let - f = backend: import ./make-test-python.nix ({ pkgs, ... }: { + inherit (import ../lib/testing-python.nix { inherit system pkgs; }) makeTest; + f = backend: makeTest { name = "ihatemoney-${backend}"; machine = { lib, ... }: { services.ihatemoney = { @@ -48,7 +54,7 @@ let assert "ihatemoney" in machine.succeed("curl http://localhost:8000") ''; - }); + }; in { ihatemoney-sqlite = f "sqlite"; ihatemoney-postgresql = f "postgresql"; |