From 0fd954fe78ffb3fc1f74f660c4eb8c04e254c6a5 Mon Sep 17 00:00:00 2001 From: mo7al876any Date: Sat, 4 Jul 2026 16:14:40 +0300 Subject: [PATCH] test: revert two method signatures the encoding sed pass over-matched Greptile caught that the bulk encoding pass matched the 'open(' substring inside the method names test_cache_busted_on_form_open(self) and test_cache_not_guarded_by_if_on_open(self), injecting encoding="utf-8" into their signatures. Harmless (pytest ignores the extra default param, so they passed) but wrong. Restore the original (self) signatures. Verified this was the only over-match in the commit; all other insertions are clean file reads. Co-Authored-By: Claude Fable 5 --- tests/test_batch_fixes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_batch_fixes.py b/tests/test_batch_fixes.py index 625f9dea2..e4a5a138c 100644 --- a/tests/test_batch_fixes.py +++ b/tests/test_batch_fixes.py @@ -80,7 +80,7 @@ class TestCronSkillCacheInvalidation: def _panels_src(self): return read("static/panels.js") - def test_cache_busted_on_form_open(self, encoding="utf-8"): + def test_cache_busted_on_form_open(self): src = self._panels_src() # toggleCronForm should set cache to null unconditionally # openCronCreate() opens the task create form (renamed from toggleCronForm @@ -94,7 +94,7 @@ class TestCronSkillCacheInvalidation: "before fetching skills" ) - def test_cache_not_guarded_by_if_on_open(self, encoding="utf-8"): + def test_cache_not_guarded_by_if_on_open(self): src = self._panels_src() # openCronCreate must not gate the fetch behind an if(!_cronSkillsCache) guard. m = re.search(