Skip to content

Commit 0b87929

Browse files
author
Milan Topuzov
committed
pre-commit: autofixes for cron scope (drop requirements.txt, trim whitespace)
- Delete root requirements.txt auto-removed by hooks\n- Trim trailing whitespace in cron tests\n\nNon-functional changes only
1 parent 88aadce commit 0b87929

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

queue_job_cron/tests/test_queue_job_cron.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ def test_queue_job_cron(self):
1313
cron = self.env.ref("queue_job.ir_cron_autovacuum_queue_jobs")
1414
self.assertFalse(cron.run_as_queue_job)
1515

16-
# Use core helper enter_registry_test_mode so method_direct_trigger
17-
# runs safely under 19.0 test harness (avoids cross-cursor
16+
# Use core helper enter_registry_test_mode so method_direct_trigger
17+
# runs safely under 19.0 test harness (avoids cross-cursor
1818
# visibility/locking quirks during tests).
1919
with self.enter_registry_test_mode():
2020
cron.method_direct_trigger()
@@ -36,7 +36,7 @@ def test_queue_job_cron_depends(self):
3636
cron = self.env.ref("queue_job.ir_cron_autovacuum_queue_jobs")
3737
default_channel = self.env.ref("queue_job_cron.channel_root_ir_cron")
3838
self.assertFalse(cron.run_as_queue_job)
39-
# Write + assert in a fresh cursor to avoid ir.cron row lock
39+
# Write + assert in a fresh cursor to avoid ir.cron row lock
4040
# serialization under 19.0 when scheduler touches it.
4141
with self.registry.cursor() as cr:
4242
env2 = self.env(cr=cr)
@@ -52,8 +52,8 @@ def test_queue_job_cron_run(self):
5252
def test_queue_job_no_parallelism(self):
5353
cron = self.env.ref("queue_job.ir_cron_autovacuum_queue_jobs")
5454
default_channel = self.env.ref("queue_job_cron.channel_root_ir_cron")
55-
# Configure + enqueue in a fresh cursor to avoid serialization
56-
# conflicts; call _delay_run_job_as_queue_job twice to exercise
55+
# Configure + enqueue in a fresh cursor to avoid serialization
56+
# conflicts; call _delay_run_job_as_queue_job twice to exercise
5757
# identity-based dedup under no_parallel setting.
5858
with self.registry.cursor() as cr:
5959
env2 = self.env(cr=cr)
@@ -83,8 +83,8 @@ def test_queue_job_no_parallelism(self):
8383

8484
def test_queue_job_cron_callback(self):
8585
cron = self.env.ref("queue_job.ir_cron_autovacuum_queue_jobs")
86-
# Run _callback in a separate cursor because core _callback
87-
# commits/rollbacks; main test cursor forbids it. Assert within the
86+
# Run _callback in a separate cursor because core _callback
87+
# commits/rollbacks; main test cursor forbids it. Assert within the
8888
# same cursor for deterministic visibility.
8989
with self.registry.cursor() as cr:
9090
env2 = self.env(cr=cr)

requirements.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)