Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions test/test_decision.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
FAKE_GRAPH_CONFIG = {"product-dir": "browser", "taskgraph": {}}


@pytest.fixture(autouse=True)
def in_git_repo(git_repo, monkeypatch):
monkeypatch.chdir(git_repo)


class TestDecision(unittest.TestCase):
def test_write_artifact_json(self):
data = [{"some": "data"}]
Expand Down
5 changes: 3 additions & 2 deletions test/test_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,10 +494,11 @@ def test_load_task_with_custom_image_registry(mocker, run_load_task, task):


@nowin
def test_load_task_with_develop(mocker, run_load_task, task):
def test_load_task_with_develop(mocker, monkeypatch, git_repo, run_load_task, task):
monkeypatch.chdir(git_repo)
repo_name = "foo"
repo_path = "/workdir/vcs"
repo = get_repository(os.getcwd())
repo = get_repository(git_repo)

# No REPOSITORIES env
ret, _ = run_load_task(task, develop=True)
Expand Down