← Back to issue list

Provide fixtures / some helpers to test an application using craft-providers

View original Github issue

Metadata

Project
craft-providers
Number
#119
Type
issue
State
open
Author
jugmac00
Labels
Type: Enhancement
Created
Updated
Closed
—

Current evaluation

Enhancement request for reusable public test fixtures/helpers that simplify downstream mocking of elaborate LXD JSON responses; remains open, uncommented, and not maintainer-triaged.

Suggested action: needs triage

Reason: The concrete Lpcraft example demonstrates substantial downstream test-mocking complexity, and repository inspection found no craft_providers.testing module or equivalent public helpers. However, the issue has no maintainer response, assignee, or comments, and it leaves the desired fixture API, supported backends, packaging, and compatibility guarantees unspecified.

Evaluated by: mr-cal-bot

Impact: 42 Quick Win: 8 Complexity: 58 Confidence: 91 Actionability: 48

Issue body

e.g. since https://github.com/canonical/craft-providers/commit/42f7cc163e it got really elaborate, see mocking the JSON response in https://github.com/jugmac00/lpcraft/blob/d8cd3dfa7ffc3e99cb16ddc25ff7f3384b2ff94c/lpcraft/commands/tests/test_run.py#L1400-L1500

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 42
Quick Win: 8
Complexity: 58
Confidence: 91
Actionability: 48
needs triage Enhancement request for reusable public test fixtures/helpers that simplify downstream mocking of elaborate LXD JSON responses; remains open, uncommented, and not maintainer-triaged.
stealth/space-bunny-alpha
Impact: 35
Quick Win: 10
Complexity: 45
Confidence: 90
Actionability: 50
needs triage Enhancement request for reusable craft-providers test fixtures to simplify downstream JSON-response mocking; open without maintainer triage or a defined helper API.
stealth/space-bunny-alpha
Impact: 45
Quick Win: 14
Complexity: 45
Confidence: 92
Actionability: 55
needs triage Request for reusable fixtures or helpers that simplify downstream testing of LXD JSON responses; remains open, untriaged, and without maintainer feedback.
qwen3.6-35b-a3b-mtp-q6
Impact: 50
Quick Win: 30
Staleness: 85
Complexity: 40
Confidence: 70
Support Request: 20
close stale Enhancement request from 4+ years ago asking for test fixtures/helpers for downstream craft-providers consumers. No maintainer comments, no assignee.
qwen/qwen3.6-35b-a3b
Staleness: 88
Complexity: 35
Confidence: 80
Support Request: 10
close stale Enhancement request for test fixtures/helpers to simplify mocking in craft-providers. Open for over 4 years with no maintainer response or implementation progress.
qwen3.6-35b-a3b-mtp-q6
Staleness: 70
Complexity: 40
Confidence: 50
Support Request: 10
needs triage Enhancement request to provide testing fixtures and helpers for craft-providers users to simplify mocking JSON responses. Currently unassessed by maintainers with zero comments.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.