Skip to content

Commit 0b3db8e

Browse files
committed
Fix twin strategy assertion
1 parent f1763a8 commit 0b3db8e

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

tests/functional/adapter/dremio_specific/test_twin_strategy.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import pytest
33
from tests.fixtures.profiles import unique_schema, dbt_profile_data
44

5-
from dbt.tests.util import run_dbt, write_file
5+
from dbt.tests.util import run_dbt, write_file, run_dbt_and_capture
66
from tests.utils.util import (
77
check_relation_types,
88
relation_from_name,
@@ -285,10 +285,11 @@ def dbt_profile_data(
285285
return profile
286286

287287
@pytest.mark.skipif(DREMIO_EDITION == "community" or not os.getenv("DREMIO_ENTERPRISE_CATALOG"), reason="Enterprise catalog is only supported in Dremio EE/DC editions.")
288-
def test_twin_strategy_not_applied_with_enterprise_catalog(self, project, caplog):
288+
def test_twin_strategy_not_applied_with_enterprise_catalog(self, project):
289289
# Run with twin_strategy configured but enterprise catalog enabled
290290
# Should show warning and not apply twin strategy
291-
run_dbt(["run"])
291+
(results, log_output) = run_dbt_and_capture(["--debug","run"])
292+
assert len(results) == 2 # Both models should build successfully
292293

293294
# Check that the warning message appears in the logs
294-
assert "WARNING: Twin strategy not applied - using enterprise catalog" in caplog
295+
assert "WARNING: Twin strategy not applied - using enterprise catalog" in log_output

0 commit comments

Comments
 (0)