Commit 55d53faf authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

add a curator

parent b05cfff2
......@@ -86,13 +86,13 @@ class OneDataSourceTestCase(TestCase):
Group.objects.get(name="Admin").user_set.add(self.staff_admin)
################################################################################
self.curator = get_user_model().objects.create(
self.u_curator = get_user_model().objects.create(
username="u_curator",
first_name="curatorF",
last_name="curatorL",
email="u_curator@a.b",
)
business_process.set_curator(self.curator, True)
business_process.set_curator(self.u_curator, True)
################################################################################
self.user = get_user_model().objects.create(
......
......@@ -38,13 +38,13 @@ class DataSourceChangeNotificationTestCase(base_test_case.OneDataSourceTestCase)
assert e.errno == errno.EEXIST, e
super().setUp()
################################################################################
self.u_curator = get_user_model().objects.create(
username="u_curator",
first_name="Dany",
last_name="u_curatorL",
email="u_curator@a.b",
)
business_process.set_curator(self.u_curator, True)
# self.u_curator = get_user_model().objects.create(
# username="u_curator",
# first_name="Dany",
# last_name="u_curatorL",
# email="u_curator@a.b",
# )
# business_process.set_curator(self.u_curator, True)
self.ds.public = True
self.ds.save()
......
......@@ -62,7 +62,7 @@ class DataSourceHistoryTestCase(base_test_case.OneDataSourceTestCase):
self.assertEqual(self.client.get(url_restore).status_code, 200)
self.assertEqual(self.client.post(url_restore, dict(agree="True")).status_code, 302)
self.client.force_login(self.curator)
self.client.force_login(self.u_curator)
self.ds.public = True
self.ds.save()
self.assertEqual(self.client.get(url_see).status_code, 200)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment