Fix async test methods missing pytest.mark.asyncio decorator
#21
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-card-creation#21
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
tests/test_automated_data_fetcher.py:162-220— Multipleasync deftest methods without@pytest.mark.asyncio. Pytest will collect and "pass" them without running the coroutine, giving false confidence in coverage.Priority: medium | Labels: bug, tech-debt
Fixed in PR #30: #30
Added
@pytest.mark.asyncioto all 14 async test methods intests/test_automated_data_fetcher.py. The decorator was missing from everyasync def test_*method, meaning pytest was silently passing them without executing the coroutine bodies.