forked from github/spec-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconftest.py
More file actions
42 lines (36 loc) · 1.43 KB
/
conftest.py
File metadata and controls
42 lines (36 loc) · 1.43 KB
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
39
40
41
42
"""Shared test helpers for integration tests."""
from specify_cli.integrations.base import MarkdownIntegration
# AF bundled extension — command stems and installed file paths.
# Used by inventory tests to avoid duplicating these lists in every test file.
AF_EXTENSION_COMMANDS = [
"af.after-analyze", "af.after-checklist", "af.after-clarify",
"af.after-constitution", "af.after-implement", "af.after-plan",
"af.after-specify", "af.after-tasks", "af.after-taskstoissues",
"af.before-analyze", "af.before-checklist", "af.before-clarify",
"af.before-constitution", "af.before-implement", "af.before-plan",
"af.before-specify", "af.before-tasks", "af.before-taskstoissues",
"af.placeholder",
]
AF_EXTENSION_FILES = [
".specify/extensions.yml",
".specify/extensions/.registry",
".specify/extensions/af/README.md",
".specify/extensions/af/extension.yml",
] + [f".specify/extensions/af/commands/speckit.{cmd}.md" for cmd in AF_EXTENSION_COMMANDS]
class StubIntegration(MarkdownIntegration):
"""Minimal concrete integration for testing."""
key = "stub"
config = {
"name": "Stub Agent",
"folder": ".stub/",
"commands_subdir": "commands",
"install_url": None,
"requires_cli": False,
}
registrar_config = {
"dir": ".stub/commands",
"format": "markdown",
"args": "$ARGUMENTS",
"extension": ".md",
}
context_file = "STUB.md"