Splits test factories and updates documentation
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user