Skip to content

Commit 2979000

Browse files
Fix undefined variable in tests
Even though that test is skipped, it's probably better to keep it running.
1 parent ac8311f commit 2979000

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

djangosaml2/tests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def test_logout_service_local(self):
363363
expected_request)
364364

365365
# now simulate a logout response sent by the idp
366-
request_id = re.findall(r' ID="(.*?)" ', xml)[0]
366+
request_id = re.findall(r' ID="(.*?)" ', expected_request)[0]
367367
instant = datetime.datetime.now().strftime('%Y-%m-%dT%H:%M:%SZ')
368368

369369
saml_response = """<?xml version='1.0' encoding='UTF-8'?>

0 commit comments

Comments
 (0)