Skip to content

Commit d820d75

Browse files
committed
ruff
1 parent a6c3953 commit d820d75

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

irods/test/rule_test.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import unittest
1212
from io import open as io_open
1313

14-
import irods.test.helpers as helpers
14+
from irods.test import helpers
1515
from irods.column import Like
1616
from irods.exception import (
1717
FAIL_ACTION_ENCOUNTERED_ERR,
@@ -448,7 +448,7 @@ def test_RULE_EXEC_CONTEXT_column_is_available_via_genquery1__issue_823(self):
448448
delay_seconds = 15 * 60
449449

450450
# Generate a unique number for use in querying the rule.
451-
random_int = random.randint(1 << 30, (1 << 31) - 1)
451+
random_int = random.randint(1 << 30, (1 << 31) - 1) # noqa: R451
452452
r = Rule(
453453
self.sess,
454454
body=f'''delay("<PLUSET>{delay_seconds}</PLUSET>") {{ writeLine("serverLog","{random_int}") }}''',
@@ -457,11 +457,11 @@ def test_RULE_EXEC_CONTEXT_column_is_available_via_genquery1__issue_823(self):
457457
r.execute()
458458

459459
# Get the delayed rule's ID, needed for cancellation.
460-
l = list(self.sess.query(RuleExec).filter(Like(RuleExec.name, f'%"{random_int}"%')))
461-
rule_id = l[0][RuleExec.id]
460+
results = list(self.sess.query(RuleExec).filter(Like(RuleExec.name, f'%"{random_int}"%')))
461+
rule_id = results[0][RuleExec.id]
462462

463463
# Assert context exists, and is JSON-parsable with a non-null-length result.
464-
rule_context = l[0][RuleExec.context]
464+
rule_context = results[0][RuleExec.context]
465465
self.assertGreater(len(json.loads(rule_context)), 0)
466466
finally:
467467
# Remove the delayed rule from the queue.

0 commit comments

Comments
 (0)