Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gberaudo committed Mar 19, 2019
1 parent c9bee08 commit 089b5fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geoportal/tests/functional/test_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def teardown_method(self, _):
#

def test_login(self):
from pyramid.httpexceptions import HTTPBadRequest
from pyramid.httpexceptions import HTTPForbidden
from c2cgeoportal_geoportal.views.entry import Entry

request = self._create_request_obj(params={
Expand Down Expand Up @@ -247,7 +247,7 @@ def test_login(self):
"password": "bad password",
})
entry = Entry(request)
self.assertRaises(HTTPBadRequest, entry.login)
self.assertRaises(HTTPForbidden, entry.login)

def test_logout_no_auth(self):
from pyramid.httpexceptions import HTTPBadRequest
Expand Down

0 comments on commit 089b5fa

Please sign in to comment.