UPD: improved the providing of real test data.

This commit is contained in:
2019-04-04 11:51:03 +02:00
parent 2fb3c139f3
commit 252ff66ac0
7 changed files with 6040 additions and 2458 deletions

View File

@@ -92,7 +92,7 @@ class EmailsTestCase(EmailTestMixin, EventMixin, RegistrationMixin, TestCase):
app_config = apps.get_app_config('dav_events')
app_config.settings.enable_email_on_status_update = False
self.event = self.create_event()
self.event = self.create_event_by_model()
self.submit_event(self.event)
self.accept_event(self.event)
self.confirm_publication_event(self.event)

View File

@@ -46,7 +46,7 @@ class UtilsTestCase(RegistrationMixin, EventMixin, TestCase):
data = common_event_data.copy()
data['first_day'] = first_day
event = self.create_event(data)
event = self.create_event_by_model(data)
self.submit_event(event)
self.accept_event(event)