Skip to content

Commit 1d2e063

Browse files
committed
Fix
spelling in test assertions
1 parent 27e4e4f commit 1d2e063

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pulpcore/tests/functional/api/test_tasking.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ def test_executes_on_api_worker_when_no_async(
470470
monitor_task(task_href)
471471
# Assert masked internal error
472472
# Underlying cause is ValueError("Immediate tasks must be async functions")
473-
assert "An internal error occured." in ctx.value.task.error["description"]
473+
assert "An internal error occurred." in ctx.value.task.error["description"]
474474

475475
@pytest.mark.parallel
476476
def test_timeouts_on_api_worker(self, pulpcore_bindings, dispatch_task):
@@ -487,7 +487,7 @@ def test_timeouts_on_api_worker(self, pulpcore_bindings, dispatch_task):
487487
task = pulpcore_bindings.TasksApi.read(task_href)
488488
assert task.state == "failed"
489489
# Assert masked internal error; underlying cause is asyncio.TimeoutError
490-
assert "An internal error occured." in task.error["description"]
490+
assert "An internal error occurred." in task.error["description"]
491491

492492

493493
@pytest.fixture
@@ -580,4 +580,4 @@ def test_times_out_on_task_worker(
580580
)
581581
monitor_task(task_href)
582582
# Assert masked internal error; underlying cause is asyncio.TimeoutError
583-
assert "An internal error occured." in ctx.value.task.error["description"]
583+
assert "An internal error occurred." in ctx.value.task.error["description"]

0 commit comments

Comments
 (0)