Skip to content

Commit 9119dda

Browse files
committed
Fix base fields count
1 parent a7dc444 commit 9119dda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

netbox_custom_objects/tests/test_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ def test_custom_object_type_get_model_without_fields(self):
5151
custom_object_type = self.create_custom_object_type(name="TestObject")
5252

5353
model = custom_object_type.get_model()
54-
# Should only have one field defined (id)
55-
self.assertEqual(len(model._meta.fields), 1)
54+
# Base fields: id, created, last_updated
55+
self.assertEqual(len(model._meta.fields), 3)
5656

5757
def test_custom_object_type_get_model_with_primary_field(self):
5858
"""Test get_model method with a primary field."""

0 commit comments

Comments
 (0)