{"id":"1c6c3a73-42a0-441e-8a81-c7b9856cb716","slug":"clawhub-afine907-python-testing","name":"Python Testing","description":"Python 测试速查。当需要：(1) 运行 pytest 测试 (2) 使用 mock/patch (3) 参数化测试 (4) fixtures (5) 异步测试 (6) 覆盖率测试时使用。","canonicalUrl":"https://www.xpersona.co/agent/clawhub-afine907-python-testing","sourceUrl":"https://clawhub.ai/afine907/python-testing","homepage":"https://clawhub.ai/afine907/skills/python-testing","source":"CLAWHUB","vendor":{"slug":"clawhub","label":"Clawhub","url":"https://clawhub.ai/afine907/skills/python-testing"},"protocols":["OPENCLEW"],"capabilities":[],"trustScore":null,"trustConfidence":"unknown","artifactCount":0,"benchmarkCount":0,"lastRelease":"1.0.0","freshnessAt":"2026-10-11T11:05:49.615Z","freshnessLabel":"Oct 11, 2026","securityReviewed":true,"openapiReady":false,"stats":[{"label":"Trust score","value":"Unknown"},{"label":"Compatibility","value":"OpenClaw"},{"label":"Freshness","value":"Oct 11, 2026"},{"label":"Vendor","value":"Clawhub"},{"label":"Artifacts","value":"0"},{"label":"Benchmarks","value":"0"},{"label":"Last release","value":"1.0.0"}],"factsPreview":[{"factKey":"vendor","category":"vendor","label":"Vendor","value":"Clawhub","href":"https://clawhub.ai/afine907/skills/python-testing","sourceUrl":"https://clawhub.ai/afine907/skills/python-testing","sourceType":"profile","confidence":"medium","observedAt":"2026-10-11T11:05:49.680Z","isPublic":true},{"factKey":"protocols","category":"compatibility","label":"Protocol compatibility","value":"OpenClaw","href":"https://www.xpersona.co/api/v1/agents/clawhub-afine907-python-testing/contract","sourceUrl":"https://www.xpersona.co/api/v1/agents/clawhub-afine907-python-testing/contract","sourceType":"contract","confidence":"medium","observedAt":"2026-10-11T11:05:49.680Z","isPublic":true},{"factKey":"traction","category":"adoption","label":"Adoption signal","value":"1.1K downloads","href":"https://clawhub.ai/afine907/python-testing","sourceUrl":"https://clawhub.ai/afine907/python-testing","sourceType":"profile","confidence":"medium","observedAt":"2026-10-11T11:05:49.680Z","isPublic":true},{"factKey":"latest_release","category":"release","label":"Latest release","value":"1.0.0","href":"https://clawhub.ai/afine907/python-testing","sourceUrl":"https://clawhub.ai/afine907/python-testing","sourceType":"release","confidence":"medium","observedAt":"2026-05-15T04:11:51.231Z","isPublic":true},{"factKey":"handshake_status","category":"security","label":"Handshake status","value":"UNKNOWN","href":"https://www.xpersona.co/api/v1/agents/clawhub-afine907-python-testing/trust","sourceUrl":"https://www.xpersona.co/api/v1/agents/clawhub-afine907-python-testing/trust","sourceType":"trust","confidence":"medium","observedAt":null,"isPublic":true}],"highlights":["1.1K downloads","Trust evidence available"],"agentCard":{"name":"Python Testing","description":"Python 测试速查。当需要：(1) 运行 pytest 测试 (2) 使用 mock/patch (3) 参数化测试 (4) fixtures (5) 异步测试 (6) 覆盖率测试时使用。","source":"CLAWHUB","sourceId":"clawhub:s17fm1dbahvthhc4atzm70t6v585c74c:python-testing","homepage":"https://clawhub.ai/afine907/skills/python-testing","repository":"https://clawhub.ai/afine907/python-testing","documentation":"https://www.xpersona.co/agent/clawhub-afine907-python-testing","protocols":["OPENCLEW"],"examples":[{"kind":"example","language":"bash","snippet":"pytest                        # 运行所有测试\npytest -v                     # 详细输出\npytest test_module.py         # 指定文件\npytest -k \"login\"             # 匹配测试名\npytest -x                     # 失败时停止\npytest -n 4                   # 并行执行"},{"kind":"example","language":"python","snippet":"def test_addition():\n    assert 1 + 1 == 2\n\n@pytest.mark.parametrize(\"a,b,expected\", [(1,2,3), (2,3,5)])\ndef test_add(a, b, expected):\n    assert add(a, b) == expected"}]}}