def test_published_approved_task_allow_all(self, username): with self.mock_request(username, self.task_approved_published) as request: self.assertEqual(rating_update(request).status_code, 200)
def test_interaction_approved_task_allow(self, username): with self.mock_request(username, self.task_approved_interaction) as request: self.assertEqual(rating_update(request).status_code, 200)