Download tests/conftest.py from mathurinacheisoft/capscore-agent: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/spaces/mathurinacheisoft/capscore-agent/resolve/main/tests/conftest.py
- Command line
-
hf download hf://spaces/mathurinacheisoft/capscore-agent/tests/conftest.py
-
curl -L -o conftest.py https://huggingface.co/spaces/mathurinacheisoft/capscore-agent/resolve/main/tests/conftest.py
1.03 kB
| import pytest | |
| from fastapi.testclient import TestClient | |
| from app.main import app | |
| from app.models import AuditRepositoryRequest, VerifyClaimsRequest, AuditAgentRequest | |
| def api_client(): | |
| return TestClient(app) | |
| def sample_audit_repo_request(): | |
| return AuditRepositoryRequest( | |
| github_url="https://github.com/CROO-Network/capscore-agent", | |
| run_tests=False, | |
| run_security_scan=False, | |
| ) | |
| def sample_verify_claims_request(): | |
| return VerifyClaimsRequest( | |
| claims=["This agent provides a working CAP provider.", "The README is clear."], | |
| evidence_urls=["https://github.com/CROO-Network/capscore-agent"], | |
| strictness="standard", | |
| ) | |
| def sample_audit_agent_request(): | |
| return AuditAgentRequest( | |
| agent_listing_url="https://agent.croo.network/capscore", | |
| github_url="https://github.com/CROO-Network/capscore-agent", | |
| claimed_tracks=["Data & Verification Agents"], | |
| depth="quick", | |
| ) | |