nixos/tests/ihatemoney.nix: run nixpkgs-fmt

now indentation is perfect
This commit is contained in:
Symphorien Gibol 2020-01-05 12:00:00 +00:00
parent b8b9e7be6d
commit 665fee312a

View File

@ -1,22 +1,24 @@
{ system ? builtins.currentSystem, { system ? builtins.currentSystem
config ? {}, , config ? {}
pkgs ? import ../.. { inherit system config; } , pkgs ? import ../.. { inherit system config; }
}: }:
let let
inherit (import ../lib/testing.nix { inherit system pkgs; }) makeTest; inherit (import ../lib/testing.nix { inherit system pkgs; }) makeTest;
in map (backend: makeTest { in
name = "ihatemoney-${backend}"; map (
machine = { lib, ... }: { backend: makeTest {
services.ihatemoney = { name = "ihatemoney-${backend}";
enable = true; machine = { lib, ... }: {
enablePublicProjectCreation = true; services.ihatemoney = {
inherit backend; enable = true;
uwsgiConfig = { enablePublicProjectCreation = true;
http = ":8000"; inherit backend;
uwsgiConfig = {
http = ":8000";
}; };
}; };
boot.cleanTmpDir = true; boot.cleanTmpDir = true;
# ihatemoney needs a local smtp server otherwise project creation just crashes # ihatemoney needs a local smtp server otherwise project creation just crashes
services.opensmtpd = { services.opensmtpd = {
enable = true; enable = true;
@ -46,4 +48,5 @@ in map (backend: makeTest {
die unless $timestamp eq $timestamp2; die unless $timestamp eq $timestamp2;
$machine->succeed("curl http://localhost:8000 | grep ihatemoney"); $machine->succeed("curl http://localhost:8000 | grep ihatemoney");
''; '';
}) [ "sqlite" "postgresql" ] }
) [ "sqlite" "postgresql" ]