Skip to content

Commit

Permalink
Fix test_run_hooks tests
Browse files Browse the repository at this point in the history
  • Loading branch information
damian3031 committed Nov 22, 2024
1 parent dee895a commit 27f9590
Showing 1 changed file with 9 additions and 4 deletions.
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)

0 comments on commit 27f9590

Please sign in to comment.