Skip to content

Commit

Permalink
Fix broken tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebecka Gulliksson committed Mar 6, 2016
1 parent a8d1a32 commit f83bb14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/satosa/backends/FakeOp.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class FakeOP:
def __init__(self):
op_base_url = TestConfiguration.get_instance().rp_config.OP_URL
self.provider = Provider(
"pyoicserv",
"https://op.tester.se/",
SessionDB(op_base_url),
CDB,
AUTHN_BROKER,
Expand Down
3 changes: 2 additions & 1 deletion tests/test_wsgi_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ def test_flow(self):
parsed = urlparse(action)
request = "{}?{}".format(parsed.path, parsed.query)
resp = test_client.post(request, data=urlencode(body),
headers=[("Cookie", headers["Set-Cookie"])])
headers=[("Cookie", headers["Set-Cookie"]),
("Content-Type", "application/x-www-form-urlencoded")])
assert resp.status == '302 Found'

headers = dict(resp.headers)
Expand Down

0 comments on commit f83bb14

Please sign in to comment.