Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Remove chdir that's no longer needed from test
  • Loading branch information
gshank committed May 26, 2023
commit a5719edb679aaa696665ec0a075e3fe22fb1afa8
4 changes: 0 additions & 4 deletions tests/functional/multi_project/test_publication.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import json
import pytest
import os

from dbt.tests.util import (
run_dbt,
Expand Down Expand Up @@ -241,8 +240,6 @@ def models_alt(self):

def test_multi_projects(self, project, project_alt):
# run the alternate project by using the alternate project root
# (There is currently a bug where project-dir requires a chdir to work.)
os.chdir(project_alt.project_root)
results, log_output = run_dbt_and_capture(
["--debug", "--log-format=json", "run", "--project-dir", str(project_alt.project_root)]
)
Expand All @@ -255,7 +252,6 @@ def test_multi_projects(self, project, project_alt):
assert len(publication.public_models) == 1

# run the base project
os.chdir(project.project_root)
write_file(dependencies_alt_yml, project.project_root, "dependencies.yml")
results = run_dbt(
["run", "--project-dir", str(project.project_root)], publications=[publication]
Expand Down