From b267eb917d752fe615b7fb318ffaabe9dec967d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 10 Dec 2023 17:00:31 +0100 Subject: [PATCH] apply treefmt --- tests/test_eval.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/test_eval.py b/tests/test_eval.py index eb7e786..88e15de 100644 --- a/tests/test_eval.py +++ b/tests/test_eval.py @@ -69,9 +69,17 @@ def test_expression() -> None: with open(TEST_ROOT.joinpath("assets/ci.nix"), "r") as ci_nix: common_test(["-E", ci_nix.read()]) + def test_eval_error() -> None: with TemporaryDirectory() as tempdir: - cmd = [str(BIN), "--gc-roots-dir", tempdir, "--meta", "--flake", ".#legacyPackages.x86_64-linux"] + cmd = [ + str(BIN), + "--gc-roots-dir", + tempdir, + "--meta", + "--flake", + ".#legacyPackages.x86_64-linux", + ] res = subprocess.run( cmd, cwd=TEST_ROOT.joinpath("assets"), @@ -80,4 +88,4 @@ def test_eval_error() -> None: ) attrs = json.loads(res.stdout) assert attrs["attr"] == "brokenPackage" - assert "this is an evaluation error" in attrs["error"] + assert "this is an evaluation error" in attrs["error"]