From cbb56847ae9dd5407aef006933e9aaf1adee9129 Mon Sep 17 00:00:00 2001 From: sewagodimo Date: Wed, 9 Jan 2019 17:17:51 +0200 Subject: [PATCH] fix flake8 error --- tests/unit/test_utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 73cc51d..0f04056 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -65,8 +65,9 @@ def test_exclude_variants_with_pages_querysets(): ''' Test that excludes variant works for querysets too ''' - page1 = WagtailPage(path="/", depth=0, url_path="/", title="Hoi") - page2 = WagtailPage(path="/", depth=0, url_path="/", title="Hoi") + for i in range(5): + page = WagtailPage(path="/" + str(i), depth=0, url_path="/", title="Hoi " + str(i)) + page.save() pages = WagtailPage.objects.all().order_by('id') result = exclude_variants(pages) assert result == pages