From e3367efda1dc93e47d72bc97b96e458b56b0912d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Wed, 6 Dec 2023 09:12:00 +0100 Subject: [PATCH] removes corresponding test --- tests/utils/test_warnings.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/tests/utils/test_warnings.py b/tests/utils/test_warnings.py index 0abca37..01fc6ae 100644 --- a/tests/utils/test_warnings.py +++ b/tests/utils/test_warnings.py @@ -34,20 +34,6 @@ def test_instance_attr_inheritance_warning(caplog: LogCaptureFixture) -> None: ) in caplog.text -def test_private_attribute_warning(caplog: LogCaptureFixture) -> None: - class ServiceClass(DataService): - def __init__(self) -> None: - super().__init__() - self.__something = "" - - ServiceClass() - - assert ( - " Warning: You should not set private but rather protected attributes! Use " - "_something instead of __something." in caplog.text - ) - - def test_protected_attribute_warning(caplog: LogCaptureFixture) -> None: class SubClass: name = "Hello"