[PATCH 08/14] Drop redundant read-only property test

Tamir Duberstein <[email protected]>
Newsgroups org.kernel.linux.tools
Message-ID <[email protected]>
Remove the user_agent_plus assignment test. It's not clear to me what
the point of this test is, and doing this already produces type checking
errors.

Signed-off-by: Tamir Duberstein <[email protected]>
---
 tests/test_node.py | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/tests/test_node.py b/tests/test_node.py
index f4a3495..4abb4f4 100644
--- a/tests/test_node.py
+++ b/tests/test_node.py
@@ -1924,12 +1924,6 @@ class TestUserAgentPlusProperty:
 
         assert node.user_agent_plus == 'my-tracking-uuid'
 
-    def test_read_only(self) -> None:
-        """Property has no setter — assignment raises AttributeError."""
-        node = LoreNode()
-        with pytest.raises(AttributeError):
-            node.user_agent_plus = 'nope'  # type: ignore[misc]  # ty:ignore[invalid-assignment]
-
 
 # =====================================================================
 # Public API: origins property

-- 
2.53.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.