From 1397570eea978b229efe839a340b7e862abf65ab Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sun, 26 Jan 2020 11:28:34 +0100 Subject: [PATCH] tests: use `lib.hm.types` instead of explicit import --- tests/lib/types/dag-merge.nix | 3 +-- tests/lib/types/list-or-dag-merge.nix | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/lib/types/dag-merge.nix b/tests/lib/types/dag-merge.nix index 41c8f28b4..058530ccb 100644 --- a/tests/lib/types/dag-merge.nix +++ b/tests/lib/types/dag-merge.nix @@ -5,7 +5,6 @@ with lib; let dag = config.lib.dag; - hmTypes = import ../../../modules/lib/types.nix { inherit dag lib; }; result = let @@ -18,7 +17,7 @@ in { options.tested.dag = mkOption { - type = with types; hmTypes.dagOf str; + type = hm.types.dagOf types.str; }; config = { diff --git a/tests/lib/types/list-or-dag-merge.nix b/tests/lib/types/list-or-dag-merge.nix index 6ffaa532e..ac592ef35 100644 --- a/tests/lib/types/list-or-dag-merge.nix +++ b/tests/lib/types/list-or-dag-merge.nix @@ -5,7 +5,6 @@ with lib; let dag = config.lib.dag; - hmTypes = import ../../../modules/lib/types.nix { inherit dag lib; }; result = let @@ -18,7 +17,7 @@ in { options.tested.dag = mkOption { - type = with types; hmTypes.listOrDagOf str; + type = hm.types.listOrDagOf types.str; }; config = {