Ruff fixes

This commit is contained in:
Patrick Robertson
2025-03-24 15:10:46 +04:00
parent dfde6f1995
commit e811196711
3 changed files with 49 additions and 25 deletions

View File

@@ -139,6 +139,7 @@ def mock_binary_dependencies(mocker):
mock_shutil_which.return_value = "/usr/bin/fake_binary"
return mock_shutil_which
@pytest.fixture
def sample_media(tmp_path) -> Media:
"""Fixture creating a Media object with temporary source file"""
@@ -146,6 +147,7 @@ def sample_media(tmp_path) -> Media:
src_file.write_text("test content")
return Media(key="subdir/test.txt", filename=str(src_file))
@pytest.fixture
def sample_datetime():
return datetime(2023, 1, 1, 12, 0, tzinfo=timezone.utc)