Skip to content

Commit f83bb14

Browse files
author
Rebecka Gulliksson
committed
Fix broken tests.
1 parent a8d1a32 commit f83bb14

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/satosa/backends/FakeOp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ class FakeOP:
183183
def __init__(self):
184184
op_base_url = TestConfiguration.get_instance().rp_config.OP_URL
185185
self.provider = Provider(
186-
"pyoicserv",
186+
"https://op.tester.se/",
187187
SessionDB(op_base_url),
188188
CDB,
189189
AUTHN_BROKER,

tests/test_wsgi_flow.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ def test_flow(self):
290290
parsed = urlparse(action)
291291
request = "{}?{}".format(parsed.path, parsed.query)
292292
resp = test_client.post(request, data=urlencode(body),
293-
headers=[("Cookie", headers["Set-Cookie"])])
293+
headers=[("Cookie", headers["Set-Cookie"]),
294+
("Content-Type", "application/x-www-form-urlencoded")])
294295
assert resp.status == '302 Found'
295296

296297
headers = dict(resp.headers)

0 commit comments

Comments
 (0)