瀏覽代碼

Correct Prefix REST API test case

jeremystretch 5 年之前
父節點
當前提交
b2b3f388b1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      netbox/ipam/tests/test_api.py

+ 1 - 1
netbox/ipam/tests/test_api.py

@@ -186,7 +186,7 @@ class RoleTest(APIViewTestCases.APIViewTestCase):
 
 class PrefixTest(APIViewTestCases.APIViewTestCase):
     model = Prefix
-    brief_fields = ['display', 'family', 'id', 'prefix', 'url']
+    brief_fields = ['_depth', 'display', 'family', 'id', 'prefix', 'url']
     create_data = [
         {
             'prefix': '192.168.4.0/24',