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
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async def arq_redis() -> typing.AsyncIterator[ArqRedis]:
pool = await create_pool(settings)
try:
await pool.ping()
except Exception as exc: # noqa: BLE001 # pragma: no cover
except Exception as exc: # noqa: BLE001 # pragma: no cover - only when Redis is unreachable; the suite runs against one
await pool.aclose()
pytest.skip(f"Redis not available at {REDIS_URL}: {exc}")
await pool.flushdb()
Expand Down
4 changes: 2 additions & 2 deletions tests/test_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ async def bad_task(
app_instance: typing.Annotated[AppResource, FromDI(AppResource)], # noqa: ARG001
*args: int,
) -> None:
results["never_called"] = args # pragma: no cover
results["never_called"] = args # pragma: no cover - never runs; inject rejects the signature first

with pytest.raises(TypeError):
inject(bad_task)
Expand All @@ -294,7 +294,7 @@ async def bad_task(
app_instance: typing.Annotated[AppResource, FromDI(AppResource)], # noqa: ARG001
**kwargs: int,
) -> None:
results["never_called"] = kwargs # pragma: no cover
results["never_called"] = kwargs # pragma: no cover - never runs; inject rejects the signature first

with pytest.raises(TypeError):
inject(bad_task)
Expand Down
Loading