File size: 1,034 Bytes
2a7f679
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import pytest
from fastapi.testclient import TestClient
from app.main import app
from app.models import AuditRepositoryRequest, VerifyClaimsRequest, AuditAgentRequest


@pytest.fixture
def api_client():
    return TestClient(app)


@pytest.fixture
def sample_audit_repo_request():
    return AuditRepositoryRequest(
        github_url="https://github.com/CROO-Network/capscore-agent",
        run_tests=False,
        run_security_scan=False,
    )


@pytest.fixture
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",
    )


@pytest.fixture
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",
    )