Fix python tests
This commit is contained in:
parent
0d4aa58990
commit
bbc4e3da3f
|
|
@ -19,7 +19,7 @@ class CourseGraphQLTestCase(TestCase):
|
||||||
create_versicherungsvermittlerin_course()
|
create_versicherungsvermittlerin_course()
|
||||||
|
|
||||||
def test_update_course_profile(self):
|
def test_update_course_profile(self):
|
||||||
user = User.objects.get(username="student-vv@eiger-versicherungen.ch")
|
user = User.objects.get(username="test-student-and-mentor2@example.com")
|
||||||
request = RequestFactory().get("/")
|
request = RequestFactory().get("/")
|
||||||
request.user = user
|
request.user = user
|
||||||
client = Client(schema=schema, context_value=request)
|
client = Client(schema=schema, context_value=request)
|
||||||
|
|
@ -98,7 +98,7 @@ class CourseGraphQLTestCase(TestCase):
|
||||||
self.assertEqual(chosen_profile, profile)
|
self.assertEqual(chosen_profile, profile)
|
||||||
|
|
||||||
def test_mentor_profile_view(self):
|
def test_mentor_profile_view(self):
|
||||||
user = User.objects.get(username="test-mentor1@example.com")
|
user = User.objects.get(username="test-student-and-mentor2@example.com")
|
||||||
request = RequestFactory().get("/")
|
request = RequestFactory().get("/")
|
||||||
request.user = user
|
request.user = user
|
||||||
client = Client(schema=schema, context_value=request)
|
client = Client(schema=schema, context_value=request)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue