diff --git a/pyproject.toml b/pyproject.toml index 3ff31537..f4c9bda1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,9 +22,14 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", ] + +[tool.hatch.metadata] +allow-direct-references = true + + dependencies = [ "psycopg2-binary>=2.9,<3.0", - "dbt-adapters>=0.1.0a1,<2.0", + "dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git@ADAP-207/get_show_sql_has_no_wrapping", # add dbt-core to ensure backwards compatibility of installation, this is not a functional dependency "dbt-core>=1.8.0a1", # installed via dbt-adapters but used directly @@ -54,6 +59,7 @@ path = "dbt/adapters/postgres/__version__.py" [tool.hatch.envs.default] dependencies = [ + "psycopg2-binary>=2.9,<3.0", "dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git@ADAP-207/get_show_sql_has_no_wrapping", "dbt-common @ git+https://github.com/dbt-labs/dbt-common.git", 'pre-commit==3.7.0;python_version>="3.9"', @@ -71,6 +77,7 @@ docker-prod = "docker build -f docker/Dockerfile -t dbt-postgres ." [tool.hatch.envs.unit-tests] dependencies = [ + "psycopg2-binary>=2.9,<3.0", "dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git@ADAP-207/get_show_sql_has_no_wrapping", "dbt-common @ git+https://github.com/dbt-labs/dbt-common.git", "dbt-core @ git+https://github.com/dbt-labs/dbt-core.git#subdirectory=core", @@ -86,7 +93,7 @@ all = "python -m pytest {args:tests/unit}" [tool.hatch.envs.integration-tests] template = "unit-tests" extra-dependencies = [ - "dbt-tests-adapter @ git+https://github.com/dbt-labs/dbt-adapters.git@ADAP-207/get_show_sql_has_no_wrapping", + "dbt-tests-adapter @ git+https://github.com/dbt-labs/dbt-adapters.git@ADAP-207/get_show_sql_has_no_wrapping#subdirectory=dbt-tests-adapter", ] [tool.hatch.envs.integration-tests.env-vars] DBT_TEST_USER_1 = "dbt_test_user_1" diff --git a/tests/functional/adapter/dbt_show/test_dbt_show.py b/tests/functional/adapter/dbt_show/test_dbt_show.py deleted file mode 100644 index b87000d4..00000000 --- a/tests/functional/adapter/dbt_show/test_dbt_show.py +++ /dev/null @@ -1,17 +0,0 @@ -from dbt.tests.adapter.dbt_show.test_dbt_show import ( - BaseShowSqlHeader, - BaseShowLimit, - BaseShowDoesNotHandleDoubleLimit, -) - - -class TestPostgresShowSqlHeader(BaseShowSqlHeader): - pass - - -class TestPostgresShowLimit(BaseShowLimit): - pass - - -class TestPostgresShowDoesNotHandleDoubleLimit(BaseShowDoesNotHandleDoubleLimit): - pass diff --git a/tests/functional/shared_tests/test_show.py b/tests/functional/shared_tests/test_show.py index 47974a04..7f3da925 100644 --- a/tests/functional/shared_tests/test_show.py +++ b/tests/functional/shared_tests/test_show.py @@ -1,6 +1,7 @@ from dbt.tests.adapter.dbt_show.test_dbt_show import ( BaseShowLimit, BaseShowSqlHeader, + BaseShowDoesNotHandleDoubleLimit, ) @@ -10,3 +11,7 @@ class TestPostgresShowSqlHeader(BaseShowSqlHeader): class TestPostgresShowLimit(BaseShowLimit): pass + + +class TestPostgresShowDoesNotHandleDoubleLimit(BaseShowDoesNotHandleDoubleLimit): + pass