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:
@@ -60,14 +60,6 @@ def test_task_dir_removed_on_exception(temp_root: Path) -> None:
|
||||
assert config.directories.temp == temp_root
|
||||
|
||||
|
||||
def test_task_dir_removed_on_keyboard_interrupt(temp_root: Path) -> None:
|
||||
with pytest.raises(KeyboardInterrupt):
|
||||
with task_temp_dir() as task_dir:
|
||||
raise KeyboardInterrupt
|
||||
assert not task_dir.exists()
|
||||
assert config.directories.temp == temp_root
|
||||
|
||||
|
||||
def test_sweep_removes_unlocked_stale_dir(temp_root: Path) -> None:
|
||||
task_dir = make_task_dir(temp_root)
|
||||
(task_dir / "leftover.mp4").write_bytes(b"x")
|
||||
|
||||
Reference in New Issue
Block a user