style: isort + black

This commit is contained in:
2026-02-01 23:29:59 +03:00
parent bb95127013
commit c03bd75b5e

View File

@@ -429,7 +429,9 @@ class TestAudioRepositoryEdgeCases:
result = await audio_repository.get_date_by_file_name("test_audio.ogg") result = await audio_repository.get_date_by_file_name("test_audio.ogg")
expected = datetime.fromtimestamp(ts, tz=timezone.utc).strftime("%d.%m.%Y %H:%M") expected = datetime.fromtimestamp(ts, tz=timezone.utc).strftime(
"%d.%m.%Y %H:%M"
)
assert result == expected assert result == expected
@pytest.mark.asyncio @pytest.mark.asyncio
@@ -438,13 +440,11 @@ class TestAudioRepositoryEdgeCases:
future_timestamp = int( future_timestamp = int(
datetime(2030, 12, 31, 23, 59, 59, tzinfo=timezone.utc).timestamp() datetime(2030, 12, 31, 23, 59, 59, tzinfo=timezone.utc).timestamp()
) )
audio_repository._execute_query_with_result.return_value = [ audio_repository._execute_query_with_result.return_value = [(future_timestamp,)]
(future_timestamp,)
]
result = await audio_repository.get_date_by_file_name("test_audio.ogg") result = await audio_repository.get_date_by_file_name("test_audio.ogg")
expected = datetime.fromtimestamp( expected = datetime.fromtimestamp(future_timestamp, tz=timezone.utc).strftime(
future_timestamp, tz=timezone.utc "%d.%m.%Y %H:%M"
).strftime("%d.%m.%Y %H:%M") )
assert result == expected assert result == expected