7

Check backward compatibility with tox

This commit is contained in:
Marcel Hekking
2020-11-25 15:50:52 +01:00
parent ffd839159b
commit 7101b63122
9 changed files with 20 additions and 25 deletions

View File

@ -18,8 +18,6 @@ except ImportError:
@pytest.fixture
def rootpage():
if locale_factory:
LocaleFactory()
return ContentPageFactory(parent=None, path='/', depth=0, title='root')
@ -81,8 +79,6 @@ def test_exclude_variants_with_pages_querysets():
'''
Test that excludes variant works for querysets
'''
if locale_factory:
LocaleFactory()
for i in range(5):
page = ContentPageFactory(path="/" + str(i), depth=0, url_path="/", title="Hoi " + str(i))
page.save()
@ -98,8 +94,6 @@ def test_exclude_variants_with_pages_querysets_not_canonical():
Test that excludes variant works for querysets with
personalisation_metadata canonical False
'''
if locale_factory:
LocaleFactory()
for i in range(5):
page = ContentPageFactory(path="/" + str(i), depth=0, url_path="/", title="Hoi " + str(i))
page.save()
@ -120,8 +114,6 @@ def test_exclude_variants_with_pages_querysets_meta_none():
'''
Test that excludes variant works for querysets with meta as none
'''
if locale_factory:
LocaleFactory()
for i in range(5):
page = ContentPageFactory(path="/" + str(i), depth=0, url_path="/", title="Hoi " + str(i))
page.save()