fix: ensure grid action icon+label do not wrap
This commit is contained in:
parent
2e8a602343
commit
26ebfcab09
2 changed files with 5 additions and 2 deletions
|
|
@ -2051,7 +2051,9 @@ class TestGridAction(TestCase):
|
|||
action, render_icon=lambda: "ICON", render_label=lambda: "LABEL"
|
||||
):
|
||||
html = action.render_icon_and_label()
|
||||
self.assertEqual("ICON LABEL", html)
|
||||
self.assertTrue(html.startswith("<span "))
|
||||
self.assertIn("ICON", html)
|
||||
self.assertIn("LABEL", html)
|
||||
|
||||
def test_get_url(self):
|
||||
obj = {"foo": "bar"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue