Parcourir la source

Added Device asset_tag field to API tests

Jeremy Stretch il y a 8 ans
Parent
commit
2b8e06faa2
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      netbox/dcim/tests/test_apis.py

+ 2 - 0
netbox/dcim/tests/test_apis.py

@@ -327,6 +327,7 @@ class DeviceTest(APITestCase):
         'tenant',
         'platform',
         'serial',
+        'asset_tag',
         'rack',
         'position',
         'face',
@@ -370,6 +371,7 @@ class DeviceTest(APITestCase):
     def test_get_list_flat(self, endpoint='/api/dcim/devices/?format=json_flat'):
 
         flat_fields = [
+            'asset_tag',
             'comments',
             'device_role_id',
             'device_role_name',