Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a877ccc

Browse files
authored
Strict pytest (Kludex#929)
* Magically turn warnings into errors ! * Close that socket * Close those loops * Is it because of lifespan was not explicitely set to off ? * Closing loop explicitely, maybe consider switching to a context manager ? * trigger GitHub actions * Close the transport when connection is lost * Close the transport when connection is lost works locally Adds some trace logs * Close the transport when connection is lost works locally Adds some trace logs * Fixed bug in message_logger.py, doesnt return Added trace logger in ws test that fails * trace log on failing wds test in ci, cant get it locally * Hard to know which test doesnt close and make the CI fail * Test order in protocols * Rewrite protocols http with context manager * Lint * rename order counts and still a bug * WOOT ? * Minimized diff, I moved tests around * Minimized diff, ws test should stay the same * Minimized diff, httptools debug stuff ermoved * Removing trace logs from diff * Reduce diff again, we take care of that bug in Kludex#967 * Removed pytest.mark.asyncio * Fix lifespan close loop post merge master * Fix websockets 9 deprecation warning
1 parent da3e4cd commit a877ccc

File tree

8 files changed

+316
-295
lines changed

8 files changed

+316
-295
lines changed

‎setup.cfg‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ known_third_party = click,does_not_exist,gunicorn,h11,httptools,pytest,requests,
4444

4545
[tool:pytest]
4646
addopts = -rxXs
47+
--strict-config
48+
--strict-markers
49+
xfail_strict=True
50+
filterwarnings=
51+
# Turn warnings that aren't filtered into exceptions
52+
error
4753

4854
[coverage:run]
4955
omit = venv/*

0 commit comments

Comments
 (0)