From 0c93e00635a2ffa6b589756137439453320bf4a5 Mon Sep 17 00:00:00 2001 From: adisbladis Date: Wed, 25 Aug 2021 03:36:32 -0500 Subject: [PATCH] Fix pytest tests --- tests/test_eval.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test_eval.py b/tests/test_eval.py index fe5373a..fe5a826 100644 --- a/tests/test_eval.py +++ b/tests/test_eval.py @@ -22,8 +22,11 @@ def common_test(extra_args: List[str]) -> None: stdout=subprocess.PIPE, ) data = json.loads(res.stdout) - assert len(data["builtJob"]["builds"]) == 1 - assert len(data["substitutedJob"]["substitutes"]) >= 1 + + assert data["builtJob"]["nixName"] == "job1" + assert "out" in data["builtJob"]["outputs"] + + assert data["substitutedJob"]["nixName"].startswith("hello-") def test_flake() -> None: