canonical / canonical/pytest-interface-tester
Allow vroot mocking
- Dominant language
- Python
- Stars
- 1
- Forks
- 5
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 1
Description
In grafana-agent-k8s-operator, in scenario tests, we mock vroot with a fixture: https://github.com/canonical/grafana-agent-k8s-operator/blob/main/tests/scenario/conftest.py#L10
It looks like pytest interface tester `configure` method does not expose the way to set up a virtual root to pass it to the tester.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the vroot fixture in tests/scenario/conftest.py around line 10, then inspect the pytest interface tester configure method. Compare how the fixture passes the virtual root to the tester and determine the configuration surface needed. Done means scenario tests can configure and use a mocked vroot.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devtools, testing-qa
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100