Skip to content

Commit

Permalink
green up tests post-rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
escapewindow committed Aug 16, 2019
1 parent c603b13 commit a120168
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scriptworker/test/test_cot_verify.py
Expand Up @@ -2510,15 +2510,15 @@ async def fake_create(*args):
"redo", None, True,
)))
@pytest.mark.asyncio
async def test_get_scm_level(rw_context, project, level, raises):
rw_context.projects = {
async def test_get_scm_level(task_context, project, level, raises):
task_context.projects = {
"mozilla-central": {"access": "scm_level_3"},
"fenix": {"level": 3},
"redo": {},
}

if raises:
with pytest.raises(Exception):
await cotverify.get_scm_level(rw_context, project)
await cotverify.get_scm_level(task_context, project)
else:
assert await cotverify.get_scm_level(rw_context, project) == level
assert await cotverify.get_scm_level(task_context, project) == level

0 comments on commit a120168

Please sign in to comment.