7

fix flake8 error

This commit is contained in:
sewagodimo
2019-01-09 17:17:51 +02:00
parent b135e79c77
commit cbb56847ae

View File

@ -65,8 +65,9 @@ def test_exclude_variants_with_pages_querysets():
''' '''
Test that excludes variant works for querysets too Test that excludes variant works for querysets too
''' '''
page1 = WagtailPage(path="/", depth=0, url_path="/", title="Hoi") for i in range(5):
page2 = WagtailPage(path="/", depth=0, url_path="/", title="Hoi") page = WagtailPage(path="/" + str(i), depth=0, url_path="/", title="Hoi " + str(i))
page.save()
pages = WagtailPage.objects.all().order_by('id') pages = WagtailPage.objects.all().order_by('id')
result = exclude_variants(pages) result = exclude_variants(pages)
assert result == pages assert result == pages