Skip to content

Commit

Permalink
Set metadata to get tests passing.
Browse files Browse the repository at this point in the history
  • Loading branch information
VersusFacit committed Jun 28, 2024
1 parent 6c540b3 commit a076761
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 19 deletions.
11 changes: 9 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"',
Expand All @@ -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",
Expand All @@ -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"
Expand Down
17 changes: 0 additions & 17 deletions tests/functional/adapter/dbt_show/test_dbt_show.py

This file was deleted.

5 changes: 5 additions & 0 deletions tests/functional/shared_tests/test_show.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from dbt.tests.adapter.dbt_show.test_dbt_show import (
BaseShowLimit,
BaseShowSqlHeader,
BaseShowDoesNotHandleDoubleLimit,
)


Expand All @@ -10,3 +11,7 @@ class TestPostgresShowSqlHeader(BaseShowSqlHeader):

class TestPostgresShowLimit(BaseShowLimit):
pass


class TestPostgresShowDoesNotHandleDoubleLimit(BaseShowDoesNotHandleDoubleLimit):
pass

0 comments on commit a076761

Please sign in to comment.