1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 17:36:05 +00:00

fix(tags): the Tags page shows small tag badges as the other pages

Its badges were the full badge size; they are the tag badge every other
page shows.
This commit is contained in:
catborise 2026-11-19 10:07:26 +03:00
parent f6b1ee8985
commit 9e4dcbe6fc
2 changed files with 2 additions and 1 deletions

View file

@ -28,6 +28,7 @@ class TagAdminTests(TestCase):
def test_the_list_counts_each_tag_s_vms_and_hosts(self):
response = self.client.get(reverse("admin:tag_list"))
self.assertEqual([(t.name, t.vm_count, t.host_count) for t in response.context["tags"]], [("prod", 1, 1)])
self.assertContains(response, 'class="badge tag-badge') # as small as on the other pages
def test_a_rename_keeps_the_tag_on_its_vms_hosts_and_removed_vms(self):
self.client.post(reverse("admin:tag_update", args=[self.prod.pk]), {"name": "Live"})