Skip to content

Commit 01fcac3

Browse files
authored
tests: remove broken temp_queue test (#672)
temp_queue downloads were reverted in 32.0.2, and while the test was partially kept, it didn't do anything, which was made obvious by python/cpython#100690, when the call to `called_once_with` started raising.
1 parent 3a53ebd commit 01fcac3

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tests/test_context.py

-10
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import pytest
1212

1313
import scriptworker.context as swcontext
14-
import taskcluster
1514
from scriptworker.exceptions import CoTError
1615

1716

@@ -78,15 +77,6 @@ async def test_set_reset_task(rw_context, claim_task, reclaim_task):
7877
assert rw_context.temp_queue is None
7978

8079

81-
def test_temp_queue(rw_context, mocker):
82-
mocker.patch("taskcluster.aio.Queue")
83-
rw_context.session = {"c": "d"}
84-
rw_context.temp_credentials = {"a": "b"}
85-
assert taskcluster.aio.Queue.called_once_with(
86-
options={"rootUrl": rw_context.config["taskcluster_root_url"], "credentials": rw_context.temp_credentials}, session=rw_context.session
87-
)
88-
89-
9080
@pytest.mark.asyncio
9181
async def test_projects(rw_context, mocker):
9282
fake_projects = {"mozilla-central": "blah", "count": 0}

0 commit comments

Comments
 (0)