create a simple test that simply assert True == True with no DB connection init.
run pytest
see error: AttributeError: module 'sqlalchemy.dialects.sqlite.base' has no attribute 'JSON'
Expected behavior
the test passes
Actual Behavior
File "/path/to/.venv/lib/python3.6/site-packages/pytest_mock_resources/fixture/database/__init__.py", line 4, in <module>
from pytest_mock_resources.fixture.database.relational import (
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "/path/to/.venv/lib/python3.6/site-packages/_pytest/assertion/rewrite.py", line 171, in exec_module
exec(co, module.__dict__)
File "/path/to/.venv/lib/python3.6/site-packages/pytest_mock_resources/fixture/database/relational/__init__.py", line 5, in <module>
from pytest_mock_resources.fixture.database.relational.sqlite import create_sqlite_fixture
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "/path/to/.venv/lib/python3.6/site-packages/_pytest/assertion/rewrite.py", line 171, in exec_module
exec(co, module.__dict__)
File "/path/to/.venv/lib/python3.6/site-packages/pytest_mock_resources/fixture/database/relational/sqlite.py", line 111, in <module>
class PMRSQLiteDialect(SQLiteDialect_pysqlite):
File "/path/to/.venv/lib/python3.6/site-packages/pytest_mock_resources/fixture/database/relational/sqlite.py", line 122, in PMRSQLiteDialect
sqltypes.JSON: sqlite_base.JSON,
AttributeError: module 'sqlalchemy.dialects.sqlite.base' has no attribute 'JSON'
Additional context
This is not an issue if I upgrade SQLAlchemy to 1.3.0.
Describe the bug Description of what the bug is.
Environment
To Reproduce Steps to reproduce the behavior:
assert True == True
with no DB connection init.pytest
AttributeError: module 'sqlalchemy.dialects.sqlite.base' has no attribute 'JSON'
Expected behavior the test passes
Actual Behavior
Additional context This is not an issue if I upgrade SQLAlchemy to 1.3.0.