mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-20 00:10:03 +02:00
removes corresponding test
This commit is contained in:
parent
3d2de7109b
commit
e3367efda1
@ -34,20 +34,6 @@ def test_instance_attr_inheritance_warning(caplog: LogCaptureFixture) -> None:
|
|||||||
) in caplog.text
|
) 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:
|
def test_protected_attribute_warning(caplog: LogCaptureFixture) -> None:
|
||||||
class SubClass:
|
class SubClass:
|
||||||
name = "Hello"
|
name = "Hello"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user