nixos/tests/ihatemoney: fix
This commit is contained in:
parent
dc80d7bc4a
commit
7971042b20
@ -1,5 +1,11 @@
|
|||||||
|
{ system ? builtins.currentSystem,
|
||||||
|
config ? {},
|
||||||
|
pkgs ? import ../.. { inherit system config; }
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
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}";
|
name = "ihatemoney-${backend}";
|
||||||
machine = { lib, ... }: {
|
machine = { lib, ... }: {
|
||||||
services.ihatemoney = {
|
services.ihatemoney = {
|
||||||
@ -48,7 +54,7 @@ let
|
|||||||
|
|
||||||
assert "ihatemoney" in machine.succeed("curl http://localhost:8000")
|
assert "ihatemoney" in machine.succeed("curl http://localhost:8000")
|
||||||
'';
|
'';
|
||||||
});
|
};
|
||||||
in {
|
in {
|
||||||
ihatemoney-sqlite = f "sqlite";
|
ihatemoney-sqlite = f "sqlite";
|
||||||
ihatemoney-postgresql = f "postgresql";
|
ihatemoney-postgresql = f "postgresql";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user