Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix testing migration #21

Merged
merged 14 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Loading