Skip to content

Commit ca20d3d

Browse files
authored
fix: use explicit rather than implicit relative imports (#433)
use explicit rather than implicit relative imports Fixes #432 🦕
1 parent 275506f commit ca20d3d

9 files changed

+8
-8
lines changed

tests/__init__.py

Whitespace-only changes.

tests/unit/__init__.py

Whitespace-only changes.

tests/unit/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import pytest
2626
import sqlalchemy
2727

28-
import fauxdbi
28+
from . import fauxdbi
2929

3030
sqlalchemy_version = packaging.version.parse(sqlalchemy.__version__)
3131
sqlalchemy_1_3_or_higher = pytest.mark.skipif(

tests/unit/test_comments.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import sqlalchemy
2121

22-
from conftest import setup_table
22+
from .conftest import setup_table
2323

2424

2525
def test_inline_comments(faux_conn):

tests/unit/test_compiler.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
import pytest
2121
import sqlalchemy.exc
2222

23-
from conftest import setup_table
24-
from conftest import sqlalchemy_1_4_or_higher
23+
from .conftest import setup_table
24+
from .conftest import sqlalchemy_1_4_or_higher
2525

2626

2727
def test_constraints_are_ignored(faux_conn, metadata):

tests/unit/test_compliance.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from sqlalchemy import Column, Integer, literal_column, select, String, Table, union
2828
from sqlalchemy.testing.assertions import eq_, in_
2929

30-
from conftest import setup_table, sqlalchemy_1_3_or_higher
30+
from .conftest import setup_table, sqlalchemy_1_3_or_higher
3131

3232

3333
def assert_result(connection, sel, expected, params=()):

tests/unit/test_geography.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import pytest
2121

22-
from conftest import setup_table
22+
from .conftest import setup_table
2323

2424
geoalchemy2 = pytest.importorskip("geoalchemy2")
2525

tests/unit/test_select.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
import sqlalchemy_bigquery
2828

29-
from conftest import (
29+
from .conftest import (
3030
setup_table,
3131
sqlalchemy_version,
3232
sqlalchemy_1_3_or_higher,

tests/unit/test_sqlalchemy_bigquery.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import pytest
1515
import sqlalchemy
1616

17-
from conftest import setup_table
17+
from .conftest import setup_table
1818

1919

2020
@pytest.fixture

0 commit comments

Comments
 (0)