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 test_run_hooks tests #448

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Changes from all 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
13 changes: 9 additions & 4 deletions tests/functional/adapter/hooks/test_run_hooks.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import pytest
from dbt.tests.adapter.hooks import test_run_hooks as core_base
from dbt.tests.adapter.hooks.test_run_hooks import (
BaseAfterRunHooks,
BasePrePostRunHooks,
)
from dbt.tests.util import run_dbt


class TestPrePostRunHooksTrino(core_base.TestPrePostRunHooks):
class TestPrePostRunHooksTrino(BasePrePostRunHooks):
@pytest.fixture(scope="class")
def project_config_update(self):
return {
Expand Down Expand Up @@ -50,5 +54,6 @@ def check_hooks(self, state, project, host):
), "invocation_id was not set"


class TestAfterRunHooksTrino(core_base.TestAfterRunHooks):
pass
class TestAfterRunHooksTrino(BaseAfterRunHooks):
def test_missing_column_pre_hook(self, project):
run_dbt(["run"], expect_pass=False)
Loading