media requires a published date, update tests to match, related to #77

This commit is contained in:
meeb 2021-03-08 12:08:10 +11:00
parent df9316bede
commit c32358bcef
1 changed files with 4 additions and 0 deletions

View File

@ -344,21 +344,25 @@ class FrontEndTestCase(TestCase):
}] }]
} }
''' '''
past_date = timezone.make_aware(datetime(year=2000, month=1, day=1))
test_media1 = Media.objects.create( test_media1 = Media.objects.create(
key='mediakey1', key='mediakey1',
source=test_source, source=test_source,
published=past_date,
metadata=test_minimal_metadata metadata=test_minimal_metadata
) )
test_media1_pk = str(test_media1.pk) test_media1_pk = str(test_media1.pk)
test_media2 = Media.objects.create( test_media2 = Media.objects.create(
key='mediakey2', key='mediakey2',
source=test_source, source=test_source,
published=past_date,
metadata=test_minimal_metadata metadata=test_minimal_metadata
) )
test_media2_pk = str(test_media2.pk) test_media2_pk = str(test_media2.pk)
test_media3 = Media.objects.create( test_media3 = Media.objects.create(
key='mediakey3', key='mediakey3',
source=test_source, source=test_source,
published=past_date,
metadata=test_minimal_metadata metadata=test_minimal_metadata
) )
test_media3_pk = str(test_media3.pk) test_media3_pk = str(test_media3.pk)