Commit Graph

14 Commits

Author SHA1 Message Date
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
Jamie Hewland b95acea973
Update CI scripts to match httpcore (#1043)
* Update CI scripts to match httpcore

* Run test suite on pushes to master

* Update scripts README

* Don't bother with flake8 extensions for now

* Remove unnecessary PYTHONPATH from build, publish

* test_routing: Use a stub app instead of ellipsis

* Add link to issue about type-checking tests
2020-09-06 12:08:07 +02:00
Taku Fukada 58016bd918 utf-8 is better for default multipart encoding 2019-07-29 00:53:47 +09:00
jaceksnet f2e9115c05 allow use of characters out of latin-1 in multipart form values and filename 2019-06-24 19:59:09 +02:00
Daniel Hahler e0e2621add flake8 fixes (#512) 2019-05-13 15:22:59 +01:00
Tom Christie 4d5708e468
ASGI 3 (#435)
* TestClient supports ASGI2 and ASGI3

* Starlette instances present ASGI3 interface

* ServerErrorMiddleware presents ASGI3 interface

* Use ASGI3 protocol throughout

* Response signatures match ASGI interface.
2019-03-19 16:03:19 +00:00
Hiroyuki Tanaka 96d50862e4 Add content_type attribute to UploadFile (#371)
* Add content_type attribute to UploadFile

* Linting

* Change: default value of UploadFile.content_type is from None to empty string
2019-02-01 09:06:33 +00:00
Tom Christie 10b61f6cc2
Multi item form data (#339)
* Add a multidict FormData structure
2019-01-22 19:47:47 +00:00
Tom Christie 6488650855
Apply URL escaping to form encoded key names. (#318) 2019-01-14 12:28:16 +00:00
Mickaël Schoentgen 2e4a4d71a8 Fix several ResourceWarning: unclosed file (#310)
Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
2019-01-08 15:12:26 +00:00
Sebastián Ramírez a290bbf1a9 Fix multi field forms parsing after already having read the body (#287)
* Fix multi field forms parsing after already having read the body

* Lint / Format additional tests

* Remove unused test app section in form tests
2019-01-04 09:44:42 +00:00
Xavier Barbosa 5fcf4945e6 Fix mixed uploaded files and data (#277)
* Fix mixed uploaded files and data

* dropped requirement to requests_toolbelt
2018-12-18 10:26:06 +00:00
Tom Christie bcf876c686
Use isort for consistent import ordering (#156) 2018-10-29 14:46:42 +00:00
Tom Christie c43a070eed
Form parsing (#102)
* Work towards MultiPartParser

* Work towards MultiPartParser

* Add test for multipart files

* MultiPart parsing

* Fix for large multipart messages

* Add python-multipart to docs

* Add python-multipart to 'pip install starlette[full]'

* Add FormParser

* Add docs for request.form()

* Drop mypy momentarily
2018-10-12 18:15:04 +01:00