canonical / canonical/github-profiles-automator

Migrate unit tests from `ops.harness`

Open
#72 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.