GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Pytest does not notify users when async tests are ignored · Issue #11372 · pytest-dev/pytest Closed Labels topic: collectionrelated to the collection phasetopic: reportingrelated to terminal output and user-facing messages and errors Milestone DescriptionWhat's the problem this feature will solve?When writing async unit-tests, it is extremely easy to forget to install the pytest-async extension and end up ignoring the futures. async def test_should_fail_but_doesnt(): assert False This passes if pytest-async is not installed. Instead, I'd like to propose we make this fail with a nice message indicating that you need too install python-async. Describe the solution you'd likeI'd like to inspect tests to see if they return a future. If they return a future, and pytest-async is not installed i'd like to error out and tell users to install it. Alternative SolutionsIgnore the tests. Additional contextI've been bit by this once~ know another team member of mine who has also been bitten by this. Activity
MetadataMetadataAssigneesLabelstopic: collectionrelated to the collection phasetopic: reportingrelated to terminal output and user-facing messages and errors TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |