mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-06 07:55:10 +00:00
test: delete slow, timing-based and redundant tests
This commit is contained in:
@@ -54,14 +54,6 @@ def test_parses_json_after_a_preamble(monkeypatch: pytest.MonkeyPatch, tmp_path:
|
||||
assert calls[0][1:] == ["info", "-i", str(tmp_path / "RPU.bin"), "-f", "0"]
|
||||
|
||||
|
||||
def test_frame_number_is_passed_through(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
||||
calls = patch_run(monkeypatch, FakeCompleted(0, RPU_JSON))
|
||||
|
||||
dovi.info_frame(tmp_path / "RPU.bin", frame=12)
|
||||
|
||||
assert calls[0][-2:] == ["-f", "12"]
|
||||
|
||||
|
||||
def test_non_zero_return_code_raises(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
||||
patch_run(monkeypatch, FakeCompleted(1, "", "boom"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user