Skip to content

Commit 85f47a7

Browse files
authored
Merge pull request #21 from upsidetravel/fix/update-support-to-1.4
Support 1.4
2 parents 04856d8 + 07ef530 commit 85f47a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ keywords = ["api", "graphql", "protocol", "rest", "relay", "graphene", "pydantic
2222
python = "^3.6"
2323
# To keep things simple, we only support newer versions of Graphene & Pydantic
2424
graphene = ">=2.1.3,<3"
25-
pydantic = ">=0.26,<=1.3"
25+
pydantic = ">=0.26,<=1.4"
2626

2727
[tool.poetry.dev-dependencies]
2828
pytest = "~4.6.4"

tests/test_converters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def test_unknown():
143143
with pytest.raises(ConversionError) as exc:
144144
_convert_field_from_spec("attr", (create_model("Model", size=int), None))
145145
assert "Don't know how to convert" in exc.value.args[0]
146-
if pydantic.version.VERSION < pydantic.version.StrictVersion("1.0"):
146+
if pydantic.version.VERSION < "1.0":
147147
assert "Field(attr type=Model default=None)" in exc.value.args[0]
148148
else:
149149
# this worked at least as of 1.1

0 commit comments

Comments
 (0)