From 3d086a74367922a631450878066fb3e64a5b8d0b Mon Sep 17 00:00:00 2001 From: James Garner Date: Mon, 23 Sep 2024 11:15:59 +1200 Subject: [PATCH] Make StatusBase.register deprecated check a separate test --- test/test_model.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_model.py b/test/test_model.py index 72f380222..015dbc0ee 100644 --- a/test/test_model.py +++ b/test/test_model.py @@ -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)