Fix pytest tests

This commit is contained in:
adisbladis 2021-08-25 03:36:32 -05:00
parent 9bfc3762eb
commit 0c93e00635
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7

View file

@ -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: