diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py index 886e9aee..f808b380 100644 --- a/tests/unit/conftest.py +++ b/tests/unit/conftest.py @@ -25,7 +25,7 @@ import pytest import sqlalchemy -import fauxdbi +from . import fauxdbi sqlalchemy_version = packaging.version.parse(sqlalchemy.__version__) sqlalchemy_1_3_or_higher = pytest.mark.skipif( diff --git a/tests/unit/test_comments.py b/tests/unit/test_comments.py index c0657f0d..df7f07a3 100644 --- a/tests/unit/test_comments.py +++ b/tests/unit/test_comments.py @@ -19,7 +19,7 @@ import sqlalchemy -from conftest import setup_table +from .conftest import setup_table def test_inline_comments(faux_conn): diff --git a/tests/unit/test_compiler.py b/tests/unit/test_compiler.py index 889ad63d..84a93508 100644 --- a/tests/unit/test_compiler.py +++ b/tests/unit/test_compiler.py @@ -20,8 +20,8 @@ import pytest import sqlalchemy.exc -from conftest import setup_table -from conftest import sqlalchemy_1_4_or_higher +from .conftest import setup_table +from .conftest import sqlalchemy_1_4_or_higher def test_constraints_are_ignored(faux_conn, metadata): diff --git a/tests/unit/test_compliance.py b/tests/unit/test_compliance.py index 9ba27cf6..fd1fbb83 100644 --- a/tests/unit/test_compliance.py +++ b/tests/unit/test_compliance.py @@ -27,7 +27,7 @@ from sqlalchemy import Column, Integer, literal_column, select, String, Table, union from sqlalchemy.testing.assertions import eq_, in_ -from conftest import setup_table, sqlalchemy_1_3_or_higher +from .conftest import setup_table, sqlalchemy_1_3_or_higher def assert_result(connection, sel, expected, params=()): diff --git a/tests/unit/test_geography.py b/tests/unit/test_geography.py index 3ee2cce6..fafc0a80 100644 --- a/tests/unit/test_geography.py +++ b/tests/unit/test_geography.py @@ -19,7 +19,7 @@ import pytest -from conftest import setup_table +from .conftest import setup_table geoalchemy2 = pytest.importorskip("geoalchemy2") diff --git a/tests/unit/test_select.py b/tests/unit/test_select.py index 58713985..33c657f7 100644 --- a/tests/unit/test_select.py +++ b/tests/unit/test_select.py @@ -26,7 +26,7 @@ import sqlalchemy_bigquery -from conftest import ( +from .conftest import ( setup_table, sqlalchemy_version, sqlalchemy_1_3_or_higher, diff --git a/tests/unit/test_sqlalchemy_bigquery.py b/tests/unit/test_sqlalchemy_bigquery.py index e97b15ff..53c49bf5 100644 --- a/tests/unit/test_sqlalchemy_bigquery.py +++ b/tests/unit/test_sqlalchemy_bigquery.py @@ -14,7 +14,7 @@ import pytest import sqlalchemy -from conftest import setup_table +from .conftest import setup_table @pytest.fixture