Tom Christie
fc16d31d62
100% test coverage ( #71 )
2019-05-16 11:14:21 +01:00
Yeray Diaz Diaz
b8b3714d8e
Add test for write timeout error ( #67 )
...
* Add test for write timeout error
* Bump up write data 10x
2019-05-16 11:00:45 +01:00
Tom Christie
3ed08857ee
Drop unused interface on ConnectionStore ( #70 )
2019-05-16 10:56:05 +01:00
Tom Christie
4fe6bc058a
Add 100-continue test ( #68 )
2019-05-16 10:21:24 +01:00
Tom Christie
5afa7dd5cc
Auth ( #65 )
...
* Initial work towards auth
* Add auth support
* Add test for custom auth
* Support auth-in-URL
* Support auth-on-session
2019-05-15 16:43:35 +01:00
Yeray Diaz Diaz
2e9ab2e904
Include URL.__hash__ in test ( #64 )
...
* Include URL.__hash__ in test
* Add test for URLs being used in a set
Remove hash assertion on test requests
* Cleanup models.py
* Use membership test instead of equality to avoid ordering problems
2019-05-15 14:30:00 +01:00
Tom Christie
abec2e85e9
Merge pull request #61 from yeraydiazdiaz/test-config
...
Test config
2019-05-14 14:36:37 +01:00
Tom Christie
8f4abe057b
Linting
2019-05-14 14:35:55 +01:00
Tom Christie
73d5fca823
repr change: <SyncResponse ...> -> <Response ...>
2019-05-14 14:35:47 +01:00
Tom Christie
e40b0bfe83
Tidy up redirect tests
2019-05-14 14:34:43 +01:00
Tom Christie
3acc31621c
Support alternate concurrency backends from client & rejig tests
2019-05-14 14:11:13 +01:00
Yeray Diaz Diaz
8d53257915
Add tests for config
...
Separate cert and key paths into its own fixture
2019-05-14 13:37:10 +01:00
Tom Christie
2694c48492
Add ConcurrencyBackend interface
2019-05-14 10:25:31 +01:00
Tom Christie
87cab4c5a4
Merge pull request #56 from yeraydiazdiaz/test-additional-http-methods
...
Additional tests for SyncClient
2019-05-14 09:33:34 +01:00
Tom Christie
c27c635f2f
Merge pull request #57 from yeraydiazdiaz/test-https
...
Add test to https server
2019-05-14 09:32:09 +01:00
Yeray Diaz Diaz
fe5a3b875b
Add tests for additional HTTP methods on async client
...
Add tests for raise_for_status and SyncResponse properties
2019-05-13 21:01:13 +01:00
Yeray Diaz Diaz
e46ee49974
Rename test_asnyc_client > test_async_client
2019-05-13 20:41:50 +01:00
Yeray Diaz Diaz
b4ab7bb619
Additional tests for SyncClient
2019-05-13 20:39:24 +01:00
Yeray Diaz Diaz
b3af383923
Add test to https server
...
Add `https_server` test fixture
2019-05-13 20:33:16 +01:00
Tom Christie
3b4439039d
Use stdlib status codes
2019-05-13 14:34:24 +01:00
Tom Christie
8627b62863
Switch to sync-by-default
2019-05-13 13:48:08 +01:00
Tom Christie
d6628ca88a
Drop 'adapters'
2019-05-13 11:54:51 +01:00
Taoufik
a260d0ace8
Remove print
2019-05-08 17:31:06 +02:00
Tom Christie
e91c69d2ad
Support url-encoded data in requests
2019-05-08 14:59:41 +01:00
Tom Christie
19542f2c3c
Request(content=...) -> Request(data=...)
2019-05-08 14:45:06 +01:00
Tom Christie
e99ffbd7ac
Increase test coverage
2019-05-08 13:52:26 +01:00
Tom Christie
faededae59
Add query_params support
2019-05-08 12:43:06 +01:00
Tom Christie
211bef130b
Add QueryParams class
2019-05-08 12:01:48 +01:00
Matus Ferech
c628eb061c
Test raise_for_status
2019-05-04 17:44:35 +02:00
Matus Ferech
0629e55f98
Add status_code endpoint
2019-05-04 17:44:06 +02:00
Tom Christie
6b60d95a4d
Truckin' on
2019-05-01 14:35:23 +01:00
Tom Christie
0ca1c844cd
Truckin' on
2019-05-01 12:39:16 +01:00
Tom Christie
d7cf8bbf36
Media types with 'text/' should default to iso-8859-1
2019-05-01 12:32:31 +01:00
Tom Christie
118d94b58c
Merge pull request #21 from yeraydiazdiaz/wait-for-connection-close
...
Add `raw` method to SyncResponse
2019-05-01 11:36:47 +01:00
Tom Christie
e1ecb360d9
Carefulness with encoding everywhere
2019-05-01 11:32:03 +01:00
Tom Christie
b948798414
Add idna support. More tests.
2019-05-01 10:58:58 +01:00
Tom Christie
5d552eba69
Update test_sync.py
2019-05-01 09:49:08 +01:00
Tom Christie
20bc1f3530
Merge branch 'master' into wait-for-connection-close
2019-05-01 09:46:19 +01:00
Tom Christie
302fe93df9
Use rfc3986 for URL handling
2019-04-30 17:39:40 +01:00
Tom Christie
fd9823e59c
Add test for explicitly setting the encoding to use
2019-04-30 16:37:10 +01:00
Tom Christie
d8df61b44b
Add response.text and response.encoding
2019-04-30 16:35:25 +01:00
Tom Christie
4255d41846
Prefer 'content' over 'body'
2019-04-30 15:08:24 +01:00
Tom Christie
4c5511313c
Response.content
2019-04-30 14:58:43 +01:00
Tom Christie
dea4d42c6d
Rejig test and tighten up models API
2019-04-30 13:52:37 +01:00
Tom Christie
d7619a92a8
Finessing interface
2019-04-30 11:26:11 +01:00
Tom Christie
d652479b07
response.next()
2019-04-29 17:14:08 +01:00
Tom Christie
51ae3e1e96
Merge branch 'master' into decoding-exceptions
2019-04-29 16:58:00 +01:00
Tom Christie
450ea25b5a
Add await response.next() interface
2019-04-29 16:18:41 +01:00
Tom Christie
b392b7ea59
Test allow_redirects=False
2019-04-29 16:08:31 +01:00
Tom Christie
05e0649e8f
Nicer headers interface
2019-04-29 16:05:05 +01:00