Skip to content

Commit

Permalink
Make StatusBase.register deprecated check a separate test
Browse files Browse the repository at this point in the history
  • Loading branch information
james-garner-canonical committed Sep 22, 2024
1 parent 6d11904 commit 3d086a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,7 @@ class NoNameStatus(ops.StatusBase): # pyright: ignore[reportUnusedClass]
class NonStringNameStatus(ops.StatusBase): # pyright: ignore[reportUnusedClass]
name = None # pyright: ignore[reportAssignmentType]

def test_base_status_register_is_deprecated(self):
with pytest.deprecated_call():
ops.StatusBase.register(ops.ActiveStatus)

Expand Down

0 comments on commit 3d086a7

Please sign in to comment.