Skip to content

Commit 2216e49

Browse files
committed
Support single object field in unit test too
1 parent eaef8cb commit 2216e49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

netbox_custom_objects/tests/test_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ def test_create_with_nested_serializers(self):
197197

198198
data = {
199199
'test_field': 'Test 004',
200-
'devices': [devices[0].id, devices[1].id],
200+
'device': devices[0].id,
201+
'devices': [devices[1].id, devices[2].id],
201202
}
202203

203204
initial_count = self._get_queryset().count()

0 commit comments

Comments
 (0)