Skip to content

Commit

Permalink
Use bytes for tesating response data (fix test)
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Jun 19, 2017
1 parent ebb82c2 commit 3f43e5f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion website/tests/views/test_cms.py
Expand Up @@ -108,7 +108,7 @@ def add_page(**data):
self.login(email='admin@domain.org', create=True, admin=True)

# check if form is included in template and if the template renders
assert '<form method="POST">' in self.client.get('/add/').data
assert b'<form method="POST">' in self.client.get('/add/').data

# test adding a simple page
response = add_page(title='Test', address='test')
Expand Down Expand Up @@ -236,3 +236,12 @@ def test_add_menu_entry(self):

def test_modify_menu(self):
assert self.is_only_for_admins('/list_menus/')

def test_sign_up(self):
pass

def test_login(self):
pass

def test_get_page(self):
pass

0 comments on commit 3f43e5f

Please sign in to comment.