Skip to content

Tests fail with SQLAlchemy 1.4 #304

Closed
@UjinT34

Description

@UjinT34

Tests fail with SQLAlchemy 1.4:

ERROR collecting graphene_sqlalchemy/tests/test_converter.py
ImportError while importing test module 'graphene-sqlalchemy/graphene_sqlalchemy/tests/test_converter.py'.                                                                                                                    
Hint: make sure your test modules/packages have valid Python names.                                                               
Traceback:                                                                                                                        
graphene_sqlalchemy/tests/test_converter.py:9: in <module>                                                                        
    from sqlalchemy_utils import ChoiceType, JSONType, ScalarListType                                                             
.tox/py39/lib/python3.9/site-packages/sqlalchemy_utils/__init__.py:1: in <module>                                                 
    from .aggregates import aggregated  # noqa                                                                                    
.tox/py39/lib/python3.9/site-packages/sqlalchemy_utils/aggregates.py:372: in <module>                                             
    from .functions.orm import get_column_key
.tox/py39/lib/python3.9/site-packages/sqlalchemy_utils/functions/__init__.py:1: in <module>
    from .database import (  # noqa
.tox/py39/lib/python3.9/site-packages/sqlalchemy_utils/functions/database.py:10: in <module>
    from ..expressions import explain_analyze
.tox/py39/lib/python3.9/site-packages/sqlalchemy_utils/expressions.py:4: in <module>
    from sqlalchemy.sql.expression import (
E   ImportError: cannot import name '_literal_as_text' from 'sqlalchemy.sql.expression' (graphene-sqlalchemy/.tox/py39/lib/python3.9/site-packages/sqlalchemy/sql/expression.py)

sqlalchemy/sqlalchemy@f07e050

The library itself seems to work fine with batching disabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions