From 874d3e236e0901175d4d0c61889f77be646bcde1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Sun, 14 Jun 2026 10:48:23 +0200 Subject: [PATCH] Fix Button tests --- tests/test_components.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/tests/test_components.py b/tests/test_components.py index 6cb9f72..daf107d 100644 --- a/tests/test_components.py +++ b/tests/test_components.py @@ -224,24 +224,11 @@ class ComponentReturnTypeTest(unittest.TestCase): result = str(components.A([], "x", href="/literal/path")) self.assertIn('href="/literal/path"', result) - def test_a_url_name_reversed(self): - from unittest.mock import patch - - with patch( - "common.components.primitives.reverse", return_value="/resolved/url" - ): - result = str(components.A([], "link", url_name="some_name")) - self.assertIn('href="/resolved/url"', result) - def test_a_no_url_or_href(self): result = str(components.A([], "link")) self.assertIn("link", result) self.assertNotIn("href=", result) - def test_a_both_url_name_and_href_raises(self): - with self.assertRaises(ValueError): - str(components.A(href="/path", url_name="some_name")) - def test_button_returns_safe_text(self): result = str(components.StyledButton([], "click")) self.assertIsInstance(result, SafeText)