Fix failing test
This commit is contained in:
parent
22460fcf28
commit
14b2905470
|
|
@ -53,7 +53,7 @@ class OwnContentTestCase(SkillboxTestCase):
|
|||
|
||||
custom_content_block = ContentBlock(title='own', slug='own', user_created=True, owner=self.user)
|
||||
self.chapter.specific.add_child(instance=custom_content_block)
|
||||
result = self.client.execute(chapterQuery, variables={
|
||||
result = self.get_client().execute(chapterQuery, variables={
|
||||
"id": self.chapter_id
|
||||
})
|
||||
self.assertEqual(len(result.data.get('chapter').get('contentBlocks')), 2)
|
||||
|
|
@ -61,7 +61,7 @@ class OwnContentTestCase(SkillboxTestCase):
|
|||
for school_class in self.user.school_classes.all():
|
||||
custom_content_block.visible_for.add(school_class)
|
||||
|
||||
result = self.client.execute(chapterQuery, variables={
|
||||
result = self.get_client().execute(chapterQuery, variables={
|
||||
"id": self.chapter_id
|
||||
})
|
||||
self.assertEqual(len(result.data.get('chapter').get('contentBlocks')), 2)
|
||||
|
|
|
|||
Loading…
Reference in New Issue