Skip to content

Commit

Permalink
Fix testing migration (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare authored Feb 28, 2024
1 parent dd4d8da commit c2e7104
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies = [
"dbt-adapters>=0.1.0a1,<2.0",
"psycopg2>=2.9,<3.0",
# installed via dbt-adapters but used directly
"dbt-common<2.0",
"dbt-common>=0.1.0a1,<2.0",
"agate>=1.0,<2.0",
]
[project.urls]
Expand Down
4 changes: 2 additions & 2 deletions tests/functional/shared_tests/test_column_types.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dbt.tests.adapter.column_types.test_column_types import BaseColumnTypes
from dbt.tests.adapter.column_types.test_column_types import BasePostgresColumnTypes


class TestPostgresColumnTypes(BaseColumnTypes):
class TestPostgresColumnTypes(BasePostgresColumnTypes):
pass
16 changes: 16 additions & 0 deletions tests/functional/shared_tests/test_hooks/data/seed_model.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
drop table if exists {schema}.on_model_hook;

create table {schema}.on_model_hook (
test_state TEXT, -- start|end
target_dbname TEXT,
target_host TEXT,
target_name TEXT,
target_schema TEXT,
target_type TEXT,
target_user TEXT,
target_pass TEXT,
target_threads INTEGER,
run_started_at TEXT,
invocation_id TEXT,
thread_id TEXT
);
16 changes: 16 additions & 0 deletions tests/functional/shared_tests/test_hooks/data/seed_run.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
drop table if exists {schema}.on_run_hook;

create table {schema}.on_run_hook (
test_state TEXT, -- start|end
target_dbname TEXT,
target_host TEXT,
target_name TEXT,
target_schema TEXT,
target_type TEXT,
target_user TEXT,
target_pass TEXT,
target_threads INTEGER,
run_started_at TEXT,
invocation_id TEXT,
thread_id TEXT
);
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""
This file needs to be in its own directory because it uses a `data` directory.
Placing this file in its own directory avoids collisions.
"""
from dbt.tests.adapter.hooks.test_model_hooks import (
BasePrePostModelHooks,
BaseHookRefs,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""
This file needs to be in its own directory because it creates a `data` directory at run time.
Placing this file in its own directory avoids collisions.
"""
from dbt.tests.adapter.simple_seed.test_seed import (
BaseBasicSeedTests,
BaseSeedConfigFullRefreshOn,
Expand Down

0 comments on commit c2e7104

Please sign in to comment.