Skip to content

Commit ff2bf50

Browse files
author
Roland Hedberg
committed
Fixed errors in tests
1 parent 177892d commit ff2bf50

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/test_30_mdstore.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def test_load_local():
360360
saml_config = Config()
361361

362362
config_dict = {
363-
"metadata": {"inline": idp_metadata}
363+
"metadata": {"inline": [idp_metadata]}
364364
}
365365
cfg = saml_config.load(config_dict)
366366
assert cfg
@@ -385,4 +385,4 @@ def test_load_string():
385385

386386

387387
if __name__ == "__main__":
388-
test_load_string()
388+
test_load_local()

tests/test_30_mdstore_old.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def test_load_string():
346346
assert len(mds.keys()) == 1
347347
idps = mds.with_descriptor("idpsso")
348348

349-
assert idps.keys() == [
349+
assert list(idps.keys()) == [
350350
'http://xenosmilus.umdc.umu.se/simplesaml/saml2/idp/metadata.php']
351351
certs = mds.certs(
352352
'http://xenosmilus.umdc.umu.se/simplesaml/saml2/idp/metadata.php',

0 commit comments

Comments
 (0)