Files
netbox/netbox/users/tests/test_tables.py
Martin Hauser d6a1cc5558 test(tables): Add reusable StandardTableTestCase
Introduce `TableTestCases.StandardTableTestCase`, a shared base class
for model-backed table smoke tests. It currently discovers sortable
columns from list-view querysets and verifies that each renders without
exceptions in both ascending and descending order.

Add per-table smoke tests across circuits, core, dcim, extras, ipam,
tenancy, users, virtualization, vpn, and wireless apps.

Fixes #21766
2026-04-06 13:53:13 -04:00

27 lines
612 B
Python

from users.tables import *
from utilities.testing import TableTestCases
class TokenTableTest(TableTestCases.StandardTableTestCase):
table = TokenTable
class UserTableTest(TableTestCases.StandardTableTestCase):
table = UserTable
class GroupTableTest(TableTestCases.StandardTableTestCase):
table = GroupTable
class ObjectPermissionTableTest(TableTestCases.StandardTableTestCase):
table = ObjectPermissionTable
class OwnerGroupTableTest(TableTestCases.StandardTableTestCase):
table = OwnerGroupTable
class OwnerTableTest(TableTestCases.StandardTableTestCase):
table = OwnerTable