Skip to content
Snippets Groups Projects
Commit d4ad780b authored by Florian Bruhin's avatar Florian Bruhin
Browse files

Remove pytest-golden FIXMEs

parent 1093355a
No related branches found
No related tags found
No related merge requests found
......@@ -215,7 +215,6 @@ def nb_arg(tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch) -> pathlib.P
return lab_path
# FIXME pytest-golden should take pathlib.Path
@pytest.mark.golden_test(str(GOLDEN_PATH / "*.yml"))
def test_golden(
runner: Runner,
......@@ -236,9 +235,7 @@ def test_golden(
result = runner.run(nb_arg)
# FIXME pytest-golden should probably support a fallback for .get, or at least
# __contains__
exit_code = 0 if golden.get("exit_code") is None else golden.out["exit_code"]
exit_code = golden.get("exit_code", 0)
assert result.exit_code == exit_code
assert result.stdout == golden.out["output"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment