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.

test: ruff-clean dataforseo costs test, strict network gate

Agrici Daniel8ee02364388f
diff --git a/tests/test_dataforseo_costs.py b/tests/test_dataforseo_costs.py
index 1e7d549..81d544a 100644
--- a/tests/test_dataforseo_costs.py
+++ b/tests/test_dataforseo_costs.py
@@ -172,13 +172,13 @@ def test_isolated_config_dir_is_honoured(tmp_path) -> None:
def test_check_reports_whether_credentials_are_in_env(tmp_path, monkeypatch):
- import subprocess, sys, json, os
- from pathlib import Path
script = Path(__file__).resolve().parents[1] / "scripts" / "dataforseo_costs.py"
env = {k: v for k, v in os.environ.items() if not k.startswith("DATAFORSEO_")}
env["CLAUDE_SEO_CONFIG_DIR"] = str(tmp_path)
- run = lambda e: json.loads(subprocess.run(
- [sys.executable, str(script), "check", "serp_organic_live_advanced"],
- capture_output=True, text=True, env=e, check=True).stdout)
+
+ def run(e):
+ return json.loads(subprocess.run(
+ [sys.executable, str(script), "check", "serp_organic_live_advanced"],
+ capture_output=True, text=True, env=e, check=True).stdout)
assert run(env)["credentials_in_env"] is False
assert run({**env, "DATAFORSEO_USERNAME": "u", "DATAFORSEO_PASSWORD": "p"})["credentials_in_env"] is True
diff --git a/tests/test_sync_flow.py b/tests/test_sync_flow.py
index 7e59e5a..23e9c36 100644
--- a/tests/test_sync_flow.py
+++ b/tests/test_sync_flow.py
@@ -17,7 +17,7 @@ REF_DIR = REPO_ROOT / "skills" / "seo-flow" / "references"
# and 403 rate limits, so these tests only run when explicitly enabled; CI sets
# the flag together with GH_TOKEN.
network = pytest.mark.skipif(
- not os.environ.get("CLAUDE_SEO_NETWORK_TESTS"),
+ os.environ.get("CLAUDE_SEO_NETWORK_TESTS") != "1",
reason="live GitHub API call; set CLAUDE_SEO_NETWORK_TESTS=1 to run",
)