Skip to content

Commit 133501e

Browse files
committed
Fix list assumption in virtual org tests
1 parent 0e68174 commit 133501e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_62_vo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def setup_class(self):
3333
conf.load_file("server_conf")
3434
self.sp = Saml2Client(conf)
3535

36-
vo_name = conf.vorg.keys()[0]
36+
vo_name = list(conf.vorg.keys())[0]
3737
self.vo = conf.vorg[vo_name]
3838
add_derek_info(self.sp)
3939

@@ -62,7 +62,7 @@ class TestVirtualOrg_2():
6262
def setup_class(self):
6363
conf = config.SPConfig()
6464
conf.load_file("server_conf")
65-
vo_name = conf.vorg.keys()[0]
65+
vo_name = list(conf.vorg.keys())[0]
6666
self.sp = Saml2Client(conf, virtual_organization=vo_name)
6767
add_derek_info(self.sp)
6868

0 commit comments

Comments
 (0)