mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 09:51:22 -06:00
Extend section regarding test adaptation
This commit is contained in:
parent
6bc8f2e50b
commit
509a115f68
@ -69,6 +69,14 @@ If the new field will be included in the object list view, add a column to the m
|
|||||||
|
|
||||||
Edit the object's view template to display the new field. There may also be a custom add/edit form template that needs to be updated.
|
Edit the object's view template to display the new field. There may also be a custom add/edit form template that needs to be updated.
|
||||||
|
|
||||||
### 11. Adjust API and model tests
|
### 11. Create/extend test cases
|
||||||
|
|
||||||
Extend the model and/or API tests to verify that the new field and any accompanying validation logic perform as expected. This is especially important for relational fields.
|
Create or extend the relevant test cases to verify that the new field and any accompanying validation logic perform as expected. This is especially important for relational fields. NetBox incorporates various test suites, including:
|
||||||
|
|
||||||
|
* API serializer/view tests
|
||||||
|
* Filter tests
|
||||||
|
* Form tests
|
||||||
|
* Model tests
|
||||||
|
* View tests
|
||||||
|
|
||||||
|
Be diligent to ensure all of the relevant test suites are adapted or extended as necessary to test any new functionality.
|
||||||
|
Loading…
Reference in New Issue
Block a user