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

Ignore Harness PendingDeprecationWarnings in our own tests #1408

Open
tonyandrewmeyer opened this issue Oct 3, 2024 · 0 comments
Open

Ignore Harness PendingDeprecationWarnings in our own tests #1408

tonyandrewmeyer opened this issue Oct 3, 2024 · 0 comments
Labels
small item testing Related to ops.testing

Comments

@tonyandrewmeyer
Copy link
Contributor

Running the tests currently generates a lot of warnings along the lines of:

test/test_testing.py::TestHarness::test_relation_events
  /tmp/operator/test/test_testing.py:745: PendingDeprecationWarning: Harness is deprecated; we recommend using state transition testing (previously known as 'Scenario') instead
    harness = ops.testing.Harness(

Obviously, this is a case where we do not want to switch to Scenario instead. We should be able to ignore this warning for the entire test/test_testing module.

@benhoyt benhoyt added testing Related to ops.testing small item labels Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
small item testing Related to ops.testing
Projects
None yet
Development

No branches or pull requests

2 participants