mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-07-17 13:10:25 +00:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user