فهرست منبع

Trim issue-number references from test docstrings

Per AGENTS.md: those belong in the PR description, not code comments,
since they rot as the codebase evolves.
Brian Tiemann 10 ساعت پیش
والد
کامیت
74a7e1d262
2فایلهای تغییر یافته به همراه6 افزوده شده و 6 حذف شده
  1. 3 3
      netbox/dcim/tests/test_api.py
  2. 3 3
      netbox/vpn/tests/test_api.py

+ 3 - 3
netbox/dcim/tests/test_api.py

@@ -1208,9 +1208,9 @@ class RackTypeTestCase(APIViewTestCases.APIViewTestCase):
 
     def test_form_factor_required(self):
         """
-        Regression test for #23154: form_factor must be reported as required by
-        OPTIONS, and a POST omitting it must be rejected with a normal "required"
-        validation error rather than a model-level "cannot be blank" error.
+        form_factor must be reported as required by OPTIONS, and a POST omitting it
+        must be rejected with a normal "required" validation error rather than a
+        model-level "cannot be blank" error.
         """
         self.add_permissions('dcim.add_racktype')
 

+ 3 - 3
netbox/vpn/tests/test_api.py

@@ -603,9 +603,9 @@ class L2VPNTestCase(APIViewTestCases.APIViewTestCase):
 
     def test_type_required(self):
         """
-        Regression test for #23154: type must be reported as required by OPTIONS,
-        and a POST omitting it must be rejected with a normal "required" validation
-        error rather than a model-level "cannot be blank" error.
+        type must be reported as required by OPTIONS, and a POST omitting it must
+        be rejected with a normal "required" validation error rather than a
+        model-level "cannot be blank" error.
         """
         self.add_permissions('vpn.add_l2vpn')