File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ class ChildModel(Model):
5050
5151
5252def test_default_primary_key (model_default_primary : Model ):
53- """Test that if a primary key is not defined a default is added.
53+ """Test that if no primary key is defined, an "id" field is added.
5454
5555 Args:
5656 model_default_primary: Fixture.
@@ -59,12 +59,12 @@ def test_default_primary_key(model_default_primary: Model):
5959
6060
6161def test_custom_primary_key (model_custom_primary : Model ):
62- """Test that if a primary key is defined no default key is added .
62+ """Test that if a primary key is defined it is not overridden .
6363
6464 Args:
6565 model_custom_primary: Fixture.
6666 """
67- assert "id" not in type (model_custom_primary ).model_fields
67+ assert "id" in type (model_custom_primary ).model_fields
6868
6969
7070@pytest .mark .filterwarnings (
You can’t perform that action at this time.
0 commit comments