canonical / canonical/github-profiles-automator
Migrate unit tests from `ops.harness`
Open
enhancement
- Dominant language
- Python
- Stars
- 1
- Forks
- 2
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 4
Description
### Context
`ops.testing.Harness` is considered deprecated since https://documentation.ubuntu.com/ops/latest/reference/ops-testing-harness/. The replacement for it should be *state-transition* tests.
The `ops` team has created a [migration guide](https://documentation.ubuntu.com/ops/latest/howto/legacy/migrate-unit-tests-from-harness/#harness-migration) which should be helpful
### What needs to get done
- Update all units tests under `tests/unit` to move away from `ops.Harness`.
### Definition of Done
- Our unit tests don't use `ops.harness`
Contributor guide
Assessment
This issue has not been assessed yet.