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 <noreply@anthropic.com>
This commit is contained in:
mo7al876any
2026-07-04 16:14:40 +03:00
parent 5f0cc6c567
commit 0fd954fe78
+2 -2
View File
@@ -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(