Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests to work with ops > 2.16 #352

Merged
merged 3 commits into from
Oct 11, 2024
Merged

Fix tests to work with ops > 2.16 #352

merged 3 commits into from
Oct 11, 2024

Conversation

MichaelThamm
Copy link
Contributor

@MichaelThamm MichaelThamm commented Oct 9, 2024

An abundance of errors in unit tests occur when using ops > 2.16.

Failures like:

  • No module named 'ops.testing._TestingModelBackend'
  • No module named 'ops.testing._TestingPebbleClient

Fixable by replacing the patches with:

harnes.handle_exec method

Signed-off-by: Michael Thamm <mike.thamm@canonical.com>
@MichaelThamm MichaelThamm requested a review from a team as a code owner October 9, 2024 15:30
@MichaelThamm MichaelThamm mentioned this pull request Oct 9, 2024
6 tasks
@MichaelThamm MichaelThamm changed the title Pin ops to version 2.16 Fix tests to work with ops > 2.16 Oct 9, 2024
@MichaelThamm MichaelThamm merged commit d122274 into main Oct 11, 2024
13 checks passed
@MichaelThamm MichaelThamm deleted the pin-ops-v2_16 branch October 11, 2024 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants