@@ -44,9 +44,9 @@ def setUp(self):
4444 date = self .event_datetime ,
4545 description = "Yayayyayayay!" ,
4646 publicationDate = self .pub_date ,
47- cover_image = image_file ,
47+ coverImage = image_file ,
4848 location = "Ezone" ,
49- workshop_link = "https://example.com/workshop" ,
49+ workshopLink = "https://example.com/workshop" ,
5050 )
5151
5252 def test_publication_date_is_date (self ):
@@ -58,10 +58,10 @@ def test_publication_date_matches(self):
5858 self .assertEqual (event .publicationDate , self .pub_date )
5959
6060 def test_cover_image_not_empty (self ):
61- self .assertIsNotNone (self .event .cover_image )
61+ self .assertIsNotNone (self .event .coverImage )
6262
6363 def test_cover_image_is_saved_in_correct_folder (self ):
64- self .assertTrue (self .event .cover_image .name .startswith ("events/" ))
64+ self .assertTrue (self .event .coverImage .name .startswith ("events/" ))
6565
6666 def test_publication_date_not_empty (self ):
6767 self .assertTrue (bool (self .event .publicationDate ))
@@ -76,7 +76,7 @@ def test_event_datetime_matches(self):
7676
7777 def test_workshop_link_matches (self ):
7878 event = Event .objects .get (pk = self .event .pk )
79- self .assertEqual (event .workshop_link , "https://example.com/workshop" )
79+ self .assertEqual (event .workshopLink , "https://example.com/workshop" )
8080
8181
8282class CommitteeModelTest (TestCase ):
0 commit comments