Skip to content

Commit

Permalink
continue instead of return
Browse files Browse the repository at this point in the history
  • Loading branch information
sunetfreitag committed Aug 22, 2024
1 parent 1c0720f commit da57d0b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test_mfazones.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def test_prepared_mfa_folders(self):
for fullnode in g_drv.fullnodes:
if g_testtarget=='prod' and fullnode == 'su':
self.logger.info(f'We are not testing su in prod right now')
return
continue
with self.subTest(mynode=fullnode):
self.logger.info(f'TestID: {self._testMethodName} - {fullnode}')
prepareOcsMFaShares(fullnode)
Expand All @@ -274,7 +274,7 @@ def test_mfa_webdav_folders(self):
for fullnode in g_drv.fullnodes:
if g_testtarget=='prod' and fullnode == 'su':
self.logger.info(f'We are not testing su in prod right now')
return
continue
with self.subTest(mynode=fullnode):
self.logger.info(f'TestID: Testing node {fullnode}')

Expand Down Expand Up @@ -315,7 +315,7 @@ def test_mfa_webdav_shared_folders(self):
for fullnode in g_drv.fullnodes:
if g_testtarget=='prod' and fullnode == 'su':
self.logger.info(f'We are not testing su in prod right now')
return
continue
with self.subTest(mynode=fullnode):
self.logger.info(f'TestID: Testing node {fullnode}')

Expand Down Expand Up @@ -384,7 +384,7 @@ def test_nonmfa_webdav_shared_folders(self):
for fullnode in g_drv.fullnodes:
if g_testtarget=='prod' and fullnode == 'su':
self.logger.info(f'We are not testing su in prod right now')
return
continue
with self.subTest(mynode=fullnode):
self.logger.info(f'TestID: Testing node {fullnode}')

Expand Down Expand Up @@ -469,7 +469,7 @@ def test_mfazones_no_mfauser(self):
for fullnode in g_drv.fullnodes:
if g_testtarget=='prod' and fullnode == 'su':
self.logger.info(f'We are not testing su in prod right now')
return
continue
with self.subTest(mynode=fullnode):
self.logger.info(f'TestID: Testing node {fullnode}')
nodelogin(fullnode) #No-MFA user
Expand Down Expand Up @@ -542,7 +542,7 @@ def test_mfazones_mfauser(self):
for fullnode in g_drv.fullnodes:
if g_testtarget=='prod' and fullnode == 'su':
self.logger.info(f'We are not testing su in prod right now')
return
continue
with self.subTest(mynode=fullnode):
self.logger.info(f'TestID: Testing node {fullnode}')
actions = ActionChains(g_driver)
Expand Down

0 comments on commit da57d0b

Please sign in to comment.