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)