agentskills-testing 0.5.0
“Conformance suite and test doubles for Agent Skills providers (https://agentskills.io)”
References /etc/passwd, shadow or gshadowUnix account database path reference
SHA-25610138c4f21fa776f2ad649ede3907104c41adf0c898fbf02caa1505ed815d048
MaleculeH₂(CmF)
Evidence
11:13… lated per :data:`CONTRACT`, and pytest collects the whole
12suite against your implementation.
13
14Every test is marked ``asyncio`` explicitly so the suite runs under
15``pytest-asyncio`` in either strict or auto mode — a kit that only works
16under one proje …
16:22… onfiguration is not a kit.
17"""
18
19from __future__ import annotations
20
21import asyncio
22
23import pytest
24
25from agentskills_core import (
26 RESOURCE_KINDS,
27 AgentSkillsError,
28 DiscoveryNotSupportedError,
29 ResourceListingNotSupportedError,
30 ResourceNotFoundError,
31 SkillNotFoundError,
32 SkillProvider,
33)
34
35#: The skill a conforming ``provider`` fixture must expose.
36SKILL_ID = "conformance-skill"
42:38… , and its exact bytes.
43SCRIPT_NAME = "run.sh"
44SCRIPT_BYTES = b"#!/bin/sh\necho conformance\n"
45
46#: The asset that skill must contain, and its exact bytes.
47ASSET_NAME = "diagram.svg"
48ASSET_BYTES = b"<svg …
74:11… yte that truncates a C string.
75TRAVERSAL_IDENTIFIERS = (
76 "../etc/passwd",
77 "..",
78 "a/../../b",
79 "/etc/passwd",
80 "..\\..\\windows\\system32",
81 "%2e%2e%2fetc%2fpasswd",
⋯5 lines
109:37… pass these is not a provider, it is
110 a class with the right method names.
111 """
112
113 @pytest.fixture
114 def provider(self) -> SkillProvider:
115 """Return the provider under test, populated per :data:`CONTRACT`."""
116 …
No evidence locations were recorded for this file. Raw result