mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-12 12:09:50 +02:00
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
27 lines
612 B
Python
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
|