Commit Graph

4 Commits

Author SHA1 Message Date
Colin Watson
664ceba2c5 Fix TestSyncifyAsyncContext.test_sync_acontext on Python 3.14 (#4722)
`asyncio.get_event_loop` fails on Python 3.14 if there is no current
event loop.  For this particular test of sync behaviour, it seems to
make most sense to explicitly create one.
2025-12-17 08:11:32 +01:00
Steve Kowalik
72f4ac0de5 Stop using the event_loop fixture (#4670) 2025-09-21 17:43:53 +02:00
Rongrong
046e2cb605 Fix HTML/MD parser producing empty MessageEntity (#3885)
Closes #3884. The implementation is also simplified.
2022-07-25 11:11:26 +02:00
NotAFile
a4876c1ac5 Add example unit test and config for testing
Add testing configuration:
 - pytest as test framework
 - tox for creating testing environments and running tests (run with `tox`)
 - pytest-asycio for asyncio testing
 - coverage/pytest-cov for measuring test coverage
 - flake8 for pep8 checking

I've also added one quick example test demonstrating basic unit testing
and use of the basic fixtures and marks provided by pytest-asyncio.

Just this already covers a suprising 32% of the codebase, mostly through
imports, but I wouldn't expect it to be helpful yet. This should provide
a good base to build on in the future though.
2019-12-07 04:23:27 +01:00