@ -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)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -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")
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user