def setUp(self): self.full_data = { 'top': 'hi top', 'bottom': 'hi bottom', 'flavor': 'og' } self.c = Client() self.meme_template = TemplateFactory()
def test_graphsql_limit(self): TemplateFactory.create_batch(20) record_count = 3 resp = self.query(""" query{ allTemplates(first:%s){ edges{ node{ name, slug } } } } """ % (record_count)) self.assertEqual(len(resp['data']['allTemplates']['edges']), record_count)
def setUp(self): self.meme_template = TemplateFactory() self.c = Client()
def setUp(self): self.full_data = {'text': 'Here is some garbage', 'flavor': 'twit'} self.c = Client() self.meme_template = TemplateFactory()