Fix unit test
This commit is contained in:
parent
7728f654a5
commit
b6298710a0
|
|
@ -1,7 +1,7 @@
|
|||
from unittest import TestCase
|
||||
from graphene.test import Client
|
||||
|
||||
from api.schema_public import schema
|
||||
from api.schema import schema
|
||||
from news.factories import NewsTeaserFactory
|
||||
|
||||
|
||||
|
|
@ -33,7 +33,7 @@ class NewsTeaserTests(TestCase):
|
|||
|
||||
return self.client.execute(query)
|
||||
|
||||
def test_public_can_get_news_teaser(self):
|
||||
def test_can_get_news_teaser(self):
|
||||
result = self.make_query()
|
||||
self.assertIsNone(result.get('errors'))
|
||||
news_teasers = result.get('data').get('newsTeasers').get('edges')
|
||||
|
|
|
|||
Loading…
Reference in New Issue