How qarium/goga-tool-pybuggy works
pybuggy is a goga API-testing tool with two user-facing paths: a CLI for configuring and managing OpenAPI/Swagger specs and generated artifacts, and a pytest plugin that provides an API fixture and loads generated fixtures. Its documented API-test lifecycle produces accepted test suites, while the runtime library supplies HTTP and assertion capabilities. Some command and API internals were not excerpted, so uncertain connections are omitted or marked unverified.
Main entry points: cli.py CLI · diff.py Contract diff · storage.py Config loader · generate.py Fixture generation
Components 26
User entry points
- CLI
goga_tool_pybuggy/cli.py - Pytest
Spec management
- Config loader
goga_tool_pybuggy/config/storage.py - Project init
goga_tool_pybuggy/commands/init/init.py - Spec pull
goga_tool_pybuggy/commands/pull/pull.py - Endpoint list
goga_tool_pybuggy/commands/list/list.py - Spec info
goga_tool_pybuggy/commands/info/info.py - Fixture generation
goga_tool_pybuggy/commands/generate/generate.py - Contract diff
goga_tool_pybuggy/commands/diff/diff.py - Spec contract
goga_tool_pybuggy/commands/diff/contract.py - Artifact scan
goga_tool_pybuggy/commands/diff/artifacts.py
Spec processing
- Spec loader
goga_tool_pybuggy/spec/loader.py - Endpoint extraction
goga_tool_pybuggy/spec/extract.py - Endpoint model
goga_tool_pybuggy/spec/endpoint.py - Endpoint IDs
goga_tool_pybuggy/spec/endpoint_id.py
Pytest integration
- Pytest plugin
goga_tool_pybuggy/plugin/plugin.py - Fixture loaders
goga_tool_pybuggy/plugin/loaders/loaders.py
API and assertions
- HTTP API client
goga_tool_pybuggy/api/api.py - API endpoint calls
goga_tool_pybuggy/api/endpoint.py - Auth chaining
goga_tool_pybuggy/api/auth.py - API assertions
goga_tool_pybuggy/api/asserts/contexts.py - Matcher framework
goga_tool_pybuggy/matchcrest/matchers/base.py - Response matchers
goga_tool_pybuggy/matchcrest/matchers/response.py - Value matchers
goga_tool_pybuggy/matchcrest/matchers/value.py
Other components
- Project engineer
- Generated artifacts
Connections 32
- Project engineer → CLI: runs commands
goga_tool_pybuggy/cli.py - Project engineer → Pytest: runs tests
- CLI → Project init: dispatches
goga_tool_pybuggy/cli.py - CLI → Spec pull: dispatches
goga_tool_pybuggy/cli.py - CLI → Endpoint list: dispatches
goga_tool_pybuggy/cli.py - CLI → Spec info: dispatches
goga_tool_pybuggy/cli.py - CLI → Fixture generation: dispatches
goga_tool_pybuggy/cli.py - CLI → Contract diff: dispatches
goga_tool_pybuggy/cli.py - Project init → Config loader: configures
goga_tool_pybuggy/commands/init/init.py - Project init → Pytest plugin: installs plugin
goga_tool_pybuggy/commands/init/init.py - Spec pull → Config loader: loads settings
goga_tool_pybuggy/commands/pull/pull.py - Endpoint list → Config loader: loads settings
goga_tool_pybuggy/commands/list/list.py - Endpoint list → Spec loader: reads specs
goga_tool_pybuggy/commands/list/list.py - Spec info → Config loader: loads settings
- Fixture generation → Config loader: loads settings
goga_tool_pybuggy/commands/generate/generate.py - Fixture generation → Spec loader: reads specs
goga_tool_pybuggy/commands/generate/generate.py - Fixture generation → Generated artifacts: produces fixtures
- Contract diff → Config loader: loads settings
goga_tool_pybuggy/commands/diff/diff.py - Contract diff → Spec loader: extracts spec
goga_tool_pybuggy/commands/diff/diff.py - Contract diff → Spec contract: builds comparison
goga_tool_pybuggy/commands/diff/diff.py - Contract diff → Artifact scan: scans artifacts
goga_tool_pybuggy/commands/diff/diff.py - Contract diff → Generated artifacts: reads artifacts
goga_tool_pybuggy/commands/diff/diff.py - Spec loader → Endpoint extraction: parses spec
- Endpoint extraction → Endpoint model: creates endpoints
goga_tool_pybuggy/spec/extract.py - Endpoint model → Endpoint IDs: builds identifier
goga_tool_pybuggy/spec/endpoint.py - Pytest → Pytest plugin: loads plugin
goga_tool_pybuggy/plugin/plugin.py - Pytest plugin → Fixture loaders: loads fixtures
goga_tool_pybuggy/plugin/plugin.py - Pytest plugin → HTTP API client: provides fixture
goga_tool_pybuggy/plugin/plugin.py - API endpoint calls → Auth chaining: combines auth
goga_tool_pybuggy/api/auth.py - API assertions → Matcher framework: uses matchers
goga_tool_pybuggy/api/asserts/contexts.py - Response matchers → Matcher framework: extends base
goga_tool_pybuggy/matchcrest/matchers/response.py - Value matchers → Matcher framework: extends base
goga_tool_pybuggy/matchcrest/matchers/value.py