AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
Python ai-promptsai-skillblueskyclaudeclaude-codeclawhubdeep-researchhackernewsinstagramopenclawpolymarketrecencyredditresearchsocial-mediatiktoktrendstwitterweb-searchyoutube
fix(verify): run the pytest suite instead of unittest discover (#1120)
Ilia Alshanetsky488ab5c3b08a
diff --git a/changelog.d/+verify-v3-test-runner.fixed.md b/changelog.d/+verify-v3-test-runner.fixed.mdnew file mode 100644index 00000000..e8b6b8ea--- /dev/null+++ b/changelog.d/+verify-v3-test-runner.fixed.md@@ -0,0 +1 @@+`verify_v3.py` now runs the unit stage with pytest, so pytest-style test files (previously skipped by `unittest discover`) are verified.diff --git a/skills/last30days/scripts/verify_v3.py b/skills/last30days/scripts/verify_v3.pyindex 26ca7420..dc7eb665 100644--- a/skills/last30days/scripts/verify_v3.py+++ b/skills/last30days/scripts/verify_v3.py@@ -52,7 +52,7 @@ def run_command(cmd: list[str], *, env: dict[str, str] | None = None, timeout: idef verify_unit() -> dict[str, str]:- run_command([PYTHON, "-m", "unittest", "discover", "-s", "tests", "-p", "test_*.py"], timeout=600)+ run_command([PYTHON, "-m", "pytest", "tests"], timeout=600)run_command([PYTHON,diff --git a/tests/test_verify_v3.py b/tests/test_verify_v3.pyindex c788b881..36cbd4e4 100644--- a/tests/test_verify_v3.py+++ b/tests/test_verify_v3.py@@ -36,6 +36,18 @@ class VerifyV3Tests(unittest.TestCase):commands = [call.args[0] for call in run.call_args_list]self.assertTrue(all("--json-profile=raw" in command for command in commands))+ def test_unit_stage_invokes_pytest_runner(self):+ module = load_verify_module()+ rg_files = mock.Mock(stdout="skills/last30days/scripts/verify_v3.py\n")+ with mock.patch.object(module, "run_command") as run, mock.patch.object(+ module.subprocess, "run", return_value=rg_files+ ):+ module.verify_unit()++ runner_command = run.call_args_list[0].args[0]+ self.assertEqual(runner_command, [module.PYTHON, "-m", "pytest", "tests"])+ self.assertNotIn("unittest", runner_command)+if __name__ == "__main__":unittest.main()