tests run

This commit is contained in:
bkfox 2023-03-28 14:22:24 +02:00
parent 20d21ab77b
commit 7dc0950385
2 changed files with 2 additions and 1 deletions

View File

@ -175,7 +175,7 @@ class SoundFile:
at = tz.datetime( at = tz.datetime(
year, month, day, pi.get("hour", 0), pi.get("minute", 0) year, month, day, pi.get("hour", 0), pi.get("minute", 0)
) )
at = tz.get_current_timezone().localize(at) at = tz.make_aware(at)
else: else:
at = date(year, month, day) at = date(year, month, day)

View File

@ -94,6 +94,7 @@ def _setup_diff(program, info):
return diff return diff
@pytest.mark.django_db(transaction=True)
def test_find_episode(sound_files): def test_find_episode(sound_files):
station = models.Station(name="test-station") station = models.Station(name="test-station")
program = models.Program(station=station, title="test") program = models.Program(station=station, title="test")