In the repo unit tests, UbuntuTestCase is not using the apt cache fake
Metadata
Current evaluation
Updating UbuntuTestCase unit tests to use the fake apt cache instead of a mock was abandoned when the request was closed as stale.
Suggested action: —
No scores available.
Issue body
We have a fake apt cache in snapcraft/tests/fixture_setup.py
This fake should be used by all the unit tests that require to access the apt cache.
The unit tests in snapcraft.tests.repo.UbuntuTestCase are using a mock instead. They should be updated to use the fake.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Updating UbuntuTestCase unit tests to use the fake apt cache instead of a mock was abandoned when the request was closed as stale. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
15
Confidence:
90
Support Request:
5
|
close stale | Request to update UbuntuTestCase unit tests to use the existing fake apt cache instead of a mock. The issue has been open for nearly 9 years with no activity or maintainer response. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
20
Confidence:
90
Support Request:
5
|
close stale | Unit tests for UbuntuTestCase use mocks instead of the project's fake apt cache. Unaddressed for nearly 9 years with no maintainer interaction. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
20
Confidence:
90
Support Request:
5
|
close stale | Unit tests for UbuntuTestCase use a mock instead of the existing apt cache fake. Unaddressed for nearly 9 years with no maintainer interaction. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
10
Confidence:
90
Support Request:
5
|
close stale | Replace the mock in UbuntuTestCase with the existing apt cache fake from fixture_setup.py. Currently open, unassigned, and awaiting implementation. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1334 tests: use the fake apt cache in deb unit tests | snapcraft | merged | Merged implementation of a fake apt cache for deb unit tests. The update modifies two files (+87/-44 lines) and was approved by two reviewers, improving test isolation and reliability. |