[PR #12312] [MERGED] 5509 Add Test cases for Custom Fields #13947

Closed
opened 2025-12-29 23:21:42 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/12312
Author: @arthanson
Created: 4/21/2023
Status: Merged
Merged: 4/17/2024
Merged by: @jeremystretch

Base: developHead: 5509-cf-test-2


📝 Commits (10+)

  • c6ddee2 5509 add content type data to model tests create and update
  • d6a5282 5509 update use cf form data
  • 1229dac 5509 merge develop
  • ccc9f88 Merge branch 'develop' into 5509-cf-test-2
  • a146051 Merge branch 'develop' into 5509-cf-test-2
  • 7dcddc3 5509 update tests to use CustomFieldTypeChoices
  • 767b80b 5509 update tests to check custom fields
  • ea7b4eb Merge branch 'develop' into 5509-cf-test-2
  • 9667aea Simplify custom fields used for testing
  • a2432df Move custom field data functions to testing.utils

📊 Changes

3 files changed (+61 additions, -7 deletions)

View changed files

📝 netbox/utilities/testing/base.py (+8 -3)
📝 netbox/utilities/testing/utils.py (+43 -1)
📝 netbox/utilities/testing/views.py (+10 -3)

📄 Description

Fixes: #5509

Adds custom fields for all models create and update tests that accept custom field data.

@jeremystretch is this more what you were looking for? Probably don't need to do all the different types of custom-fields but gives better test coverage.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/12312 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 4/21/2023 **Status:** ✅ Merged **Merged:** 4/17/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `5509-cf-test-2` --- ### 📝 Commits (10+) - [`c6ddee2`](https://github.com/netbox-community/netbox/commit/c6ddee286006d46d5748507abc481a98e186e387) 5509 add content type data to model tests create and update - [`d6a5282`](https://github.com/netbox-community/netbox/commit/d6a5282cb92053faebfad842daf6eeb13c334c93) 5509 update use cf form data - [`1229dac`](https://github.com/netbox-community/netbox/commit/1229dacf7555988ea60d6d7074f351ecc78981a0) 5509 merge develop - [`ccc9f88`](https://github.com/netbox-community/netbox/commit/ccc9f88c4cedb1aa9ca644af054ba3bc3564bf91) Merge branch 'develop' into 5509-cf-test-2 - [`a146051`](https://github.com/netbox-community/netbox/commit/a146051c44007bdcd1fd93b8a105dde20bc94c57) Merge branch 'develop' into 5509-cf-test-2 - [`7dcddc3`](https://github.com/netbox-community/netbox/commit/7dcddc301236d83e29ca553fbcc87d2593130ffa) 5509 update tests to use CustomFieldTypeChoices - [`767b80b`](https://github.com/netbox-community/netbox/commit/767b80b8b81b034ad44a70441b9b6dd92c6b3842) 5509 update tests to check custom fields - [`ea7b4eb`](https://github.com/netbox-community/netbox/commit/ea7b4ebecfd6285b235ddf501fff9253c7d12c91) Merge branch 'develop' into 5509-cf-test-2 - [`9667aea`](https://github.com/netbox-community/netbox/commit/9667aea6d57400ebf638428916dd55b7f1a2e523) Simplify custom fields used for testing - [`a2432df`](https://github.com/netbox-community/netbox/commit/a2432df6036b9575aa29efe2c8a2d3b6ed721f0f) Move custom field data functions to testing.utils ### 📊 Changes **3 files changed** (+61 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `netbox/utilities/testing/base.py` (+8 -3) 📝 `netbox/utilities/testing/utils.py` (+43 -1) 📝 `netbox/utilities/testing/views.py` (+10 -3) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #5509 <!-- Please include a summary of the proposed changes below. --> Adds custom fields for all models create and update tests that accept custom field data. @jeremystretch is this more what you were looking for? Probably don't need to do all the different types of custom-fields but gives better test coverage. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:21:42 +01:00
adam closed this issue 2025-12-29 23:21:42 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13947