fix: add stub for PersonView.make_user()
for tailbone compat, but pretty sure we'll want this too
This commit is contained in:
parent
17b8af27a7
commit
9805f808da
2 changed files with 29 additions and 0 deletions
|
@ -56,3 +56,18 @@ class TestPersonView(WebTestCase):
|
|||
self.request.matchdict = {'uuid': person.uuid}
|
||||
response = view.view_profile(session=self.session)
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
def test_make_user(self):
|
||||
self.pyramid_config.include('wuttaweb.views.common')
|
||||
|
||||
model = self.app.model
|
||||
person = model.Person(full_name="Barney Rubble")
|
||||
self.session.add(person)
|
||||
self.session.commit()
|
||||
|
||||
# sanity check
|
||||
view = self.make_view()
|
||||
self.request.matchdict = {'uuid': person.uuid}
|
||||
response = view.make_user()
|
||||
# nb. this always redirects for now
|
||||
self.assertEqual(response.status_code, 302)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue