From: Tamir Duberstein <tamird@gmail.com>
To: "Kernel.org Tools" <tools@kernel.org>
Cc: Konstantin Ryabitsev <konstantin@linuxfoundation.org>,
Tamir Duberstein <tamird@gmail.com>
Subject: [PATCH v2 08/14] Drop redundant read-only property test
Date: Mon, 13 Apr 2026 18:08:22 -0400 [thread overview]
Message-ID: <20260413-harden-type-checking-v2-8-1ba6056288d9@gmail.com> (raw)
In-Reply-To: <20260413-harden-type-checking-v2-0-1ba6056288d9@gmail.com>
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 <tamird@gmail.com>
---
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
next prev parent reply other threads:[~2026-04-13 22:08 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-13 22:08 [PATCH v2 00/14] Harden local type checking and test mocking Tamir Duberstein
2026-04-13 22:08 ` [PATCH v2 01/14] Add ci script and mypy suppressions Tamir Duberstein
2026-04-13 22:08 ` [PATCH v2 02/14] Type make_msg and drop test suppressions Tamir Duberstein
2026-04-13 22:08 ` [PATCH v2 03/14] Add ruff import checks to b4 CI Tamir Duberstein
2026-04-13 22:08 ` [PATCH v2 04/14] Add ruff format check to CI Tamir Duberstein
2026-04-13 22:08 ` [PATCH v2 05/14] Add pyright strict checks " Tamir Duberstein
2026-04-13 22:08 ` [PATCH v2 06/14] Replace HTTP session mocks with responses Tamir Duberstein
2026-04-13 22:08 ` [PATCH v2 07/14] Add ty checks to CI Tamir Duberstein
2026-04-13 22:08 ` Tamir Duberstein [this message]
2026-04-13 22:08 ` [PATCH v2 09/14] Type from_git_config keyword arguments Tamir Duberstein
2026-04-13 22:08 ` [PATCH v2 10/14] Add authheaders stub and typed callable Tamir Duberstein
2026-04-13 22:08 ` [PATCH v2 11/14] Replace batch mocks with subclasses Tamir Duberstein
2026-04-13 22:08 ` [PATCH v2 12/14] Use CompletedProcess in git config tests Tamir Duberstein
2026-04-13 22:08 ` [PATCH v2 13/14] Update README for uv-based dev checks Tamir Duberstein
2026-04-13 22:08 ` [PATCH v2 14/14] Add b4 send configuration Tamir Duberstein
2026-04-14 17:28 ` [PATCH v2 00/14] Harden local type checking and test mocking Konstantin Ryabitsev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260413-harden-type-checking-v2-8-1ba6056288d9@gmail.com \
--to=tamird@gmail.com \
--cc=konstantin@linuxfoundation.org \
--cc=tools@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox