Skip to content

Commit 9846a98

Browse files
Chore: Fix flaky dbt test by using xdist_group
1 parent f00d6a8 commit 9846a98

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/dbt/test_transformation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,9 +1556,9 @@ def test_grain():
15561556
assert model.to_sqlmesh(context).grains == [exp.to_column("id_a")]
15571557

15581558

1559-
def test_on_run_start_end(copy_to_temp_path):
1560-
project_root = "tests/fixtures/dbt/sushi_test"
1561-
sushi_context = Context(paths=copy_to_temp_path(project_root))
1559+
@pytest.mark.xdist_group("dbt_manifest")
1560+
def test_on_run_start_end():
1561+
sushi_context = Context(paths=["tests/fixtures/dbt/sushi_test"])
15621562
assert len(sushi_context._environment_statements) == 2
15631563

15641564
# Root project's on run start / on run end should be first by checking the macros

0 commit comments

Comments
 (0)