Address skipped unit tests #7875

Closed
opened 2025-12-29 20:29:15 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Apr 6, 2023).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

Using the default test configuration, several tests are being skipped:

  • extras.tests.test_api.ReportTest.test_run_report (RQ worker not running)
  • extras.tests.test_api.ScriptTest.test_run_script (RQ worker not running)
  • users.tests.test_api.GroupTest.test_bulk_update_objects (Bulk update data not set)
  • users.tests.test_api.UserTest.test_bulk_update_objects (Bulk update data not set)

Additionally, the following test is producing extraneous output:

  • ipam.tests.test_api.VLANTest.test_delete_vlan_with_prefix (Unable to delete object. 1 dependent objects were found: 192.0.2.0/24 (24))

Adjust these tests to ensure they are being run consistently, and without any extraneous output.

Justification

Ensure consistent, predictable, and clean test results.

Originally created by @jeremystretch on GitHub (Apr 6, 2023). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes Using the [default test configuration](https://github.com/netbox-community/netbox/blob/74d8baea30d65e6a6bf5b765f686d051ee9405e2/netbox/netbox/configuration_testing.py), several tests are being skipped: - `extras.tests.test_api.ReportTest.test_run_report` (RQ worker not running) - `extras.tests.test_api.ScriptTest.test_run_script` (RQ worker not running) - `users.tests.test_api.GroupTest.test_bulk_update_objects` (Bulk update data not set) - `users.tests.test_api.UserTest.test_bulk_update_objects` (Bulk update data not set) Additionally, the following test is producing extraneous output: - `ipam.tests.test_api.VLANTest.test_delete_vlan_with_prefix` (Unable to delete object. 1 dependent objects were found: 192.0.2.0/24 (24)) Adjust these tests to ensure they are being run consistently, and without any extraneous output. ### Justification Ensure consistent, predictable, and clean test results.
adam added the status: acceptedtype: housekeeping labels 2025-12-29 20:29:15 +01:00
adam closed this issue 2025-12-29 20:29:15 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7875