Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions example/tests/integration/test_polymorphism.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def test_invalid_type_on_polymorphic_model(client):
response = client.post(url, data=data)
assert response.status_code == 409
content = response.json()
assert len(content["errors"]) is 1
assert len(content["errors"]) == 1
assert content["errors"][0]["status"] == "409"
try:
assert content["errors"][0]["detail"] == \
Expand Down Expand Up @@ -191,7 +191,7 @@ def test_invalid_type_on_polymorphic_relation(single_company, research_project_f
data=content)
assert response.status_code == 409
content = response.json()
assert len(content["errors"]) is 1
assert len(content["errors"]) == 1
assert content["errors"][0]["status"] == "409"
try:
assert content["errors"][0]["detail"] == \
Expand Down
2 changes: 1 addition & 1 deletion requirements-development.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ django-filter==2.1.0
django-polymorphic==2.0.3
factory-boy==2.11.1
Faker==1.0.2
flake8==3.6.0
flake8==3.7.5
flake8-isort==2.6.0
isort==4.3.4
mock==2.0.0
Expand Down