7

Splits test factories and updates documentation

This commit is contained in:
Jasper Berghoef
2017-04-25 16:15:33 +02:00
parent da56a521a9
commit 6640bf8d74
8 changed files with 97 additions and 63 deletions

View File

@ -2,6 +2,7 @@ import pytest
from personalisation.utils import impersonate_other_page
class Page(object):
def __init__(self, path, depth, url_path, title):
self.path = path
@ -12,6 +13,7 @@ class Page(object):
def __eq__(self, other):
return self.__dict__ == other.__dict__
def test_impersonate_other_page():
page = Page(path="/", depth=0, url_path="/", title="Hoi")
other_page = Page(path="/other", depth=1, url_path="/other", title="Doei")