From 876a22c4ade7e6fdf4042821e2b0f478f8ca7f16 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Tue, 20 Nov 2018 09:13:37 +0100 Subject: [PATCH] Adjust test to run on pipelines --- server/books/tests/test_module_mutations.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/books/tests/test_module_mutations.py b/server/books/tests/test_module_mutations.py index ffb5fd57..372f1c18 100644 --- a/server/books/tests/test_module_mutations.py +++ b/server/books/tests/test_module_mutations.py @@ -117,4 +117,6 @@ class NewContentBlockMutationTest(TestCase): new_content_block = result.get('data').get('addContentBlock').get('newContentBlock') self.assertEqual(new_content_block.get('title'), title) self.assertEqual(len(new_content_block['contents']), 1) - self.assertEqual(new_content_block['contents'], [{'type': 'image_url_block', 'value': {'url': '/test.png'}}]) + content = new_content_block['contents'][0] + self.assertEqual(content.get('type'), 'image_url_block') + self.assertEqual(content.get('value'), {'url': '/test.png'})