Commit Graph

8 Commits

Author SHA1 Message Date
Marcelo Trylesinski b9db010d49
Set `line-length` to 120 on Ruff (#2679)
* Set `line-length` to 120 on Ruff

* Add links to selected rules

* Remove empty strings

* Fix more stuff
2024-09-01 15:11:01 +02:00
Scirlat Danut 78fcd54c07
Create types module inside tests (#2502)
* Create types module inside tests

* Apply suggestions from code review

* Apply suggestions from code review

* Fix check errors

* Change testclientfactory due to autotest

* No cover fix

* Apply suggestions from code review

* Skip code coverage for TestClientFactory protocol

* Apply suggestions from code review

* Small improvements

* Lint

* Fix everything

---------

Co-authored-by: Scirlat Danut <scirlatdanut@scirlats-mini.lan>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-07-27 03:31:16 -06:00
Scirlat Danut ee3cdfd5dc
Add type hints to `test_gzip.py` (#2464)
* added type annotations to test_gzip.py

* Apply suggestions from code review

* Apply suggestions from code review

---------

Co-authored-by: Scirlat Danut <scirlatdanut@scirlats-mini.lan>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-02-05 10:46:34 +00:00
Michał Górny 88e9fc1411
Fix test_gzip_ignored_for_responses_with_encoding_set w/ brotli (#1962)
Closes https://github.com/encode/starlette/pull/1597
2022-11-23 09:02:53 +01:00
kklingenberg 858629f518
Bypass GZipMiddleware when response includes `Content-Encoding` (#1901)
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2022-10-12 16:15:29 +02:00
Amin Alaee f3403d2404
Remove routing decorators in test_gzip.py (#1497) 2022-02-10 10:25:00 +01:00
Thomas Grainger d222b87cb4
TestClient accepts backend and backend_options as arguments to constructor (#1211)
as opposed to ClassVar assignment 

Co-authored-by: Jamie Hewland <jhewland@gmail.com>
Co-authored-by: Jordan Speicher <jordan@jspeicher.com>
Co-authored-by: Jordan Speicher <uSpike@users.noreply.github.com>
2021-06-28 21:36:13 +01:00
Tom Christie 097152be5a
Add GZip middleware (#111) 2018-10-15 12:08:10 +01:00