Skip to content

Commit

Permalink
Revert mock.py change
Browse files Browse the repository at this point in the history
  • Loading branch information
saschanaz committed Jun 21, 2020
1 parent 2a2e037 commit 7a65541
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions etc/taskcluster/mock.py
Expand Up @@ -20,7 +20,6 @@
import os
import sys
from unittest.mock import MagicMock
import decision_task
class TaskclusterRestFailure(Exception):
Expand All @@ -39,14 +38,13 @@ def findTask(self, path):
stringDate = str
slugId = b"<new id>".lower
sys.exit = Queue = fromNow = MagicMock()
sys.modules["taskcluster"] = sys.modules[__name__]
sys.dont_write_bytecode = True
os.environ.update(**{k: k for k in "TASK_ID TASK_OWNER TASK_SOURCE GIT_URL GIT_SHA".split()})
os.environ["GIT_REF"] = "refs/heads/auto"
os.environ["TASKCLUSTER_ROOT_URL"] = "https://community-tc.services.mozilla.com"
os.environ["TASKCLUSTER_PROXY_URL"] = "http://taskcluster"
os.environ["NEW_AMI_WORKER_TYPE"] = "-"
import decision_task # noqa: E402
decision_task.decisionlib.subprocess = MagicMock()
print("\n# Push:")
Expand Down

0 comments on commit 7a65541

Please sign in to comment.