Skip to content

Commit ecbc00f

Browse files
committed
Fix types.binary cannot be imported
1 parent 340b29d commit ecbc00f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

graphene_sqlalchemy/tests/test_converter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,10 @@ class Model(declarative_base()):
4848

4949

5050
def test_should_unknown_sqlalchemy_field_raise_exception():
51-
# TODO: SQLALchemy does not export types.Binary, remove or update this test
5251
re_err = "Don't know how to convert the SQLAlchemy field"
5352
with pytest.raises(Exception, match=re_err):
5453
# support legacy Binary type and subsequent LargeBinary
55-
get_field(getattr(types, 'LargeBinary', types.Binary)())
54+
get_field(getattr(types, 'LargeBinary', types.BINARY)())
5655

5756

5857
def test_should_date_convert_string():

0 commit comments

Comments
 (0)