Skip to content

Commit

Permalink
Strict pytest (encode#929)
Browse files Browse the repository at this point in the history
* 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 encode#967

* Removed pytest.mark.asyncio

* Fix lifespan close loop post merge master

* Fix websockets 9 deprecation warning
  • Loading branch information
euri10 authored and Kludex committed Oct 29, 2022
1 parent 117fabb commit a05bebf
Show file tree
Hide file tree
Showing 8 changed files with 316 additions and 295 deletions.
6 changes: 6 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ known_third_party = click,does_not_exist,gunicorn,h11,httptools,pytest,requests,

[tool:pytest]
addopts = -rxXs
--strict-config
--strict-markers
xfail_strict=True
filterwarnings=
# Turn warnings that aren't filtered into exceptions
error

[coverage:run]
omit = venv/*
Expand Down
Loading

0 comments on commit a05bebf

Please sign in to comment.