mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 18:08:38 -06:00
Fix test for tags view
This commit is contained in:
parent
8b3ec625f6
commit
438b01815a
@ -13,8 +13,9 @@ from utilities.testing import create_test_user
|
|||||||
class TagTestCase(TestCase):
|
class TagTestCase(TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
user = create_test_user(permissions=['extras.view_tag'])
|
||||||
self.client = Client()
|
self.client = Client()
|
||||||
|
self.client.force_login(user)
|
||||||
|
|
||||||
Tag.objects.bulk_create([
|
Tag.objects.bulk_create([
|
||||||
Tag(name='Tag 1', slug='tag-1'),
|
Tag(name='Tag 1', slug='tag-1'),
|
||||||
|
Loading…
Reference in New Issue
Block a user