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

@@ -54,7 +54,7 @@ class ActionTestCase(EmailTestMixin, RoleMixin, EventMixin, TestCase):
return uuid
def _test_status_update(self, status_code, user):
event = self.create_event(TEST_EVENT_DATA)
event = self.create_event_by_model(TEST_EVENT_DATA)
self.submit_event(event)
if status_code in ('publishing_web', 'publishing_facebook'):
@@ -142,7 +142,7 @@ class ActionTestCase(EmailTestMixin, RoleMixin, EventMixin, TestCase):
self._test_status_update('accepted', self.manager_w)
def test_accept_repeated(self):
event = self.create_event(TEST_EVENT_DATA)
event = self.create_event_by_model(TEST_EVENT_DATA)
self.submit_event(event)
action_parameters = '{},accepted,{}'.format(event.id, self.manager_super.id)
@@ -154,7 +154,7 @@ class ActionTestCase(EmailTestMixin, RoleMixin, EventMixin, TestCase):
self._assertRepeated(response)
def test_accepted_already(self):
event = self.create_event(TEST_EVENT_DATA)
event = self.create_event_by_model(TEST_EVENT_DATA)
self.submit_event(event)
action_parameters = '{},accepted,{}'.format(event.id, self.manager_super.id)