Check backward compatibility with tox
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user