We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7dc444 commit 9119ddaCopy full SHA for 9119dda
netbox_custom_objects/tests/test_models.py
@@ -51,8 +51,8 @@ def test_custom_object_type_get_model_without_fields(self):
51
custom_object_type = self.create_custom_object_type(name="TestObject")
52
53
model = custom_object_type.get_model()
54
- # Should only have one field defined (id)
55
- self.assertEqual(len(model._meta.fields), 1)
+ # Base fields: id, created, last_updated
+ self.assertEqual(len(model._meta.fields), 3)
56
57
def test_custom_object_type_get_model_with_primary_field(self):
58
"""Test get_model method with a primary field."""
0 commit comments