Fixed file path problem if you run 'setup.py test'
This commit is contained in:
@@ -2,8 +2,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from contextlib import closing
|
from contextlib import closing
|
||||||
from saml2.attribute_converter import to_local
|
|
||||||
from saml2.samlp import response_from_string
|
|
||||||
|
|
||||||
from saml2 import config
|
from saml2 import config
|
||||||
from saml2.authn_context import INTERNETPROTOCOLPASSWORD
|
from saml2.authn_context import INTERNETPROTOCOLPASSWORD
|
||||||
@@ -115,7 +113,7 @@ class TestResponse:
|
|||||||
assert False
|
assert False
|
||||||
|
|
||||||
def test_other_response(self):
|
def test_other_response(self):
|
||||||
xml_response = open("attribute_response.xml").read()
|
xml_response = open(full_path("attribute_response.xml")).read()
|
||||||
resp = response_factory(
|
resp = response_factory(
|
||||||
xml_response, self.conf,
|
xml_response, self.conf,
|
||||||
return_addrs=['https://myreviewroom.com/saml2/acs/'],
|
return_addrs=['https://myreviewroom.com/saml2/acs/'],
|
||||||
|
Reference in New Issue
Block a user