From 4135bc6ac3757be66c177ec592afff5b9fc2d1e5 Mon Sep 17 00:00:00 2001 From: Brian Tiemann Date: Sun, 2 Aug 2026 20:28:43 -0400 Subject: [PATCH] Closes #642: Add missing test_bulk_update_objects_without_change_permission stub NetBox core split its single generic test_bulk_update_objects_with_permission method into two separately-named tests on 2026-07-08 (fixing #22617: editing via bulk import form requires the change permission, not just add). Both carry the same csv_update_data requirement, but this repo's 5 view test classes only stubbed out the old method name to suppress it (since dynamically generated Custom Object models don't fit the standard CSV-bulk-update test pattern. The new method fell through to the real inherited implementation and started failing the moment a NetBox core checkout containing that commit was used. main already carries an equivalent fix (added incidentally in c7a6965, bundled with unrelated branching CI matrix work, and never ported to feature). This ports just the 5 stub-method additions. EOF ) --- netbox_custom_objects/tests/test_views.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/netbox_custom_objects/tests/test_views.py b/netbox_custom_objects/tests/test_views.py index a7944dfe..e122da06 100644 --- a/netbox_custom_objects/tests/test_views.py +++ b/netbox_custom_objects/tests/test_views.py @@ -83,6 +83,9 @@ def test_bulk_edit_objects_with_constrained_permission(self): def test_bulk_update_objects_with_permission(self): ... + def test_bulk_update_objects_without_change_permission(self): + ... + def test_bulk_import_objects_with_permission(self): ... @@ -205,6 +208,9 @@ def test_bulk_edit_objects_with_constrained_permission(self): def test_bulk_update_objects_with_permission(self): ... + def test_bulk_update_objects_without_change_permission(self): + ... + def test_bulk_import_objects_with_permission(self): ... @@ -339,6 +345,9 @@ def test_bulk_edit_objects_with_constrained_permission(self): def test_bulk_update_objects_with_permission(self): ... + def test_bulk_update_objects_without_change_permission(self): + ... + def test_bulk_import_objects_with_permission(self): ... @@ -639,6 +648,9 @@ def test_bulk_edit_objects_with_constrained_permission(self): def test_bulk_update_objects_with_permission(self): ... + def test_bulk_update_objects_without_change_permission(self): + ... + def test_bulk_import_objects_with_permission(self): ... @@ -890,6 +902,9 @@ def test_bulk_edit_objects_with_constrained_permission(self): def test_bulk_update_objects_with_permission(self): ... + def test_bulk_update_objects_without_change_permission(self): + ... + def test_bulk_import_objects_with_permission(self): ...