chore: add quality infra matrix, constraints, and test baseline fixes

This commit is contained in:
Your Name
2026-02-27 12:24:35 +08:00
parent a5682716ec
commit a726aa7fe1
8 changed files with 161 additions and 109 deletions
+1 -8
View File
@@ -2,6 +2,7 @@
"""Tests for AgentReach core class."""
import pytest
from agent_reach.config import Config
from agent_reach.core import AgentReach
@@ -16,14 +17,6 @@ class TestAgentReach:
def test_init(self, eyes):
assert eyes.config is not None
def test_detect_platform(self, eyes):
assert eyes.detect_platform("https://github.com/test/repo") == "github"
assert eyes.detect_platform("https://reddit.com/r/test") == "reddit"
assert eyes.detect_platform("https://x.com/user/status/123") == "twitter"
assert eyes.detect_platform("https://youtube.com/watch?v=abc") == "youtube"
assert eyes.detect_platform("https://bilibili.com/video/BV1xx") == "bilibili"
assert eyes.detect_platform("https://example.com") == "web"
def test_doctor(self, eyes):
results = eyes.doctor()
assert isinstance(results, dict)