Skip to content

Universal SEO skill for Claude Code. 26 sub-skills + 19 sub-agents covering technical SEO, E-E-A-T, schema, GEO/AEO, agent readiness (Lighthouse Agentic Browsing, WebMCP, llms.txt), backlinks, local SEO, e-commerce, international SEO, Google APIs, and PDF/Excel reporting. 9 optional extensions for live SEO data.

fix(tests): stub os.fchmod even where the platform lacks it

Tobi | Nordaluxfa4cf1259aeb
diff --git a/tests/test_url_safety.py b/tests/test_url_safety.py
index 37bc5d6..da6f467 100644
--- a/tests/test_url_safety.py
+++ b/tests/test_url_safety.py
@@ -590,7 +590,9 @@ def test_save_oauth_token_ignores_fchmod_oserror(tmp_path, monkeypatch) -> None:
def unsupported_fchmod(_fd, _mode):
raise OSError("unsupported")
- monkeypatch.setattr(google_auth.os, "fchmod", unsupported_fchmod)
+ # os.fchmod only exists on Windows from Python 3.13; install the stub
+ # either way so the OSError path is exercised on every platform.
+ monkeypatch.setattr(google_auth.os, "fchmod", unsupported_fchmod, raising=False)
google_auth._save_oauth_token({"access_token": "portable"})
assert json.loads(target.read_text(encoding="utf-8")) == {
"access_token": "portable"