8

Add unittests for the session adapter

This commit is contained in:
Michael van Tellingen
2017-05-31 16:08:07 +02:00
committed by Michael van Tellingen
parent e107d73716
commit 03073eb004
5 changed files with 68 additions and 10 deletions

View File

@@ -2,8 +2,6 @@ from __future__ import absolute_import, unicode_literals
import pytest
from wagtail.wagtailcore.models import Page, Site
from wagtail_factories import SiteFactory
from tests.factories.page import PageFactory
pytest_plugins = [
'tests.fixtures'
@@ -16,4 +14,3 @@ def django_db_setup(django_db_setup, django_db_blocker):
# Remove some initial data that is brought by the sandbox module
Site.objects.all().delete()
Page.objects.all().exclude(depth=1).delete()