Skip to content

Commit

Permalink
Add a link to the Harness deprecation warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyandrewmeyer committed Dec 18, 2024
1 parent d2508f8 commit 0543af9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ops/_private/harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,9 @@ def __init__(
)

warnings.warn(
'Harness is deprecated; we recommend using state transition testing '
"(previously known as 'Scenario') instead",
'Harness is deprecated; we recommend state transition testing '
"(previously known as 'Scenario') for charm unit tests instead. See more: "
'https://ops.readthedocs.io/en/latest/howto/write-unit-tests-for-a-charm.html',
PendingDeprecationWarning,
stacklevel=2,
)
Expand Down

0 comments on commit 0543af9

Please sign in to comment.