Skip to content

Commit 1515a18

Browse files
author
Joseph ORON
committed
Testing: fix linting issues reported by Ruff
1 parent e0a8616 commit 1515a18

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

tests/test_rse.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -572,11 +572,10 @@ def test_add_protocol(self, vo, rucio_client):
572572
rucio_client.add_protocol(protocol_rse, p)
573573
resp = mgr.get_rse_info(rse=protocol_rse, vo=vo)
574574
for p in resp['protocols']:
575-
assert not (((p['port'] == 19) and (p['domains']['lan']['read'] != 1)) or
576-
((p['port'] == 20) and (p['domains']['lan']['read'] != 2)) or
577-
((p['port'] == 18) and (p['domains']['lan']['read'] != 1)) or
578-
((p['port'] == 17) and (p['domains']['lan']['read'] != 4))), f"Protocol {p['port']} has wrong read value {p['domains']['lan']['read']}. Response: {resp}"
579-
575+
assert not (((p['port'] == 19) and (p['domains']['lan']['read'] != 1)) or
576+
((p['port'] == 20) and (p['domains']['lan']['read'] != 2)) or
577+
((p['port'] == 18) and (p['domains']['lan']['read'] != 1)) or
578+
((p['port'] == 17) and (p['domains']['lan']['read'] != 4))), f"Protocol {p['port']} has wrong read value {p['domains']['lan']['read']}. Response: {resp}"
580579

581580
rucio_client.delete_protocols(protocol_rse, scheme='MOCK')
582581
rucio_client.delete_rse(protocol_rse)

tests/test_rule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@ def mktree(scope, account):
12961296
mktree(scope, account)
12971297
rule_ids = add_rule(dids=[{'scope': scope, 'name': 'container1213'}], copies=1, rse_expression=f'{self.rse1}|{self.rse2}|{self.rse3}|{self.rse4}',
12981298
grouping='NONE', account=account, weight=None, lifetime=None, locked=False, subscription_id=None)
1299-
rule = get_rule(rule_ids[0]
1299+
rule = get_rule(rule_ids[0])
13001300
assert (rule['locks_ok_cnt'] == 25), f"Expected 25 locks_ok, got {rule['locks_ok_cnt']}"
13011301
assert (rule['locks_replicating_cnt'] == 0), f"Expected 0 locks_replicating, got {rule['locks_replicating_cnt']}"
13021302
dsl1 = list(get_dataset_locks(scope, 'ds1'))

0 commit comments

Comments
 (0)