Skip to content

Commit 2a55c29

Browse files
committed
Fix test
1 parent 55b04f2 commit 2a55c29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/dcim/tests/test_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1953,7 +1953,7 @@ def test_module_bulk_adoption(self):
19531953
self.assertIsNone(interface.module)
19541954

19551955
# Create a module with adopted components
1956-
module_bay = ModuleBay.objects.filter(device=device).first()
1956+
module_bay = ModuleBay.objects.get(device=device, name='Module Bay 4')
19571957
csv_data = [
19581958
"device,module_bay,module_type,replicate_components,adopt_components",
19591959
f"{device.name},{module_bay.name},{module_type.model},false,true"

0 commit comments

Comments
 (0)