-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Comparing changes
Open a pull request
base repository: Kludex/starlette
base: 0.36.3
head repository: Kludex/starlette
compare: 0.37.0
- 9 commits
- 14 files changed
- 4 contributors
Commits on Feb 4, 2024
-
Added type annotations to test_exceptions.py (#2479)
Co-authored-by: Scirlat Danut <scirlatdanut@scirlats-mini.lan>
Configuration menu - View commit details
-
Copy full SHA for fce2809 - Browse repository at this point
Copy the full SHA fce2809View commit details -
Added type annotations to test_datastructures.py (#2477)
Co-authored-by: Scirlat Danut <scirlatdanut@scirlats-mini.lan>
Configuration menu - View commit details
-
Copy full SHA for b817dc4 - Browse repository at this point
Copy the full SHA b817dc4View commit details -
added type annotations to test_http_redirect.py (#2465)
Co-authored-by: Scirlat Danut <scirlatdanut@scirlats-mini.lan>
Configuration menu - View commit details
-
Copy full SHA for 5ab70d8 - Browse repository at this point
Copy the full SHA 5ab70d8View commit details -
Added type annotations to test_config.py (#2475)
* added type annotations to test_config.py * Apply suggestions from code review --------- Co-authored-by: Scirlat Danut <scirlatdanut@scirlats-mini.lan> Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 551bf86 - Browse repository at this point
Copy the full SHA 551bf86View commit details -
Added type annotations to test_convertors.py (#2476)
* added type annotations to test_convertors.py * Apply suggestions from code review --------- Co-authored-by: Scirlat Danut <scirlatdanut@scirlats-mini.lan> Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 043c800 - Browse repository at this point
Copy the full SHA 043c800View commit details -
Support the WebSocket Denial Response ASGI extension (#2041)
* supply asgi_extensions to TestClient * Add WebSocket.send_response() * Add response support for WebSocket testclient * fix test for filesystem line-endings * lintint * support websocket.http.response extension by default * Improve coverate * Apply suggestions from code review Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com> * Undo unrelated change * fix incorrect error message * Update starlette/websockets.py Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com> * formatting * Re-introduce close-code and close-reason to WebSocketReject * Make sure the "websocket.connect" message is received in tests * Deliver a websocket.disconnect message to the app even if it closes/rejects itself. * Add test for filling out missing `websocket.disconnect` code * Add rejection headers. Expand tests. * Fix types, headers in message are `bytes` tuples. * Minimal WebSocket Denial Response implementation * Revert "Minimal WebSocket Denial Response implementation" This reverts commit 7af10dd. * Rename to send_denial_response and update documentation * Remove the app_disconnect_msg. This can be added later in a separate PR * Remove status code 1005 from this PR * Assume that the application has tested for the extension before sending websocket.http.response.start * Rename WebSocketReject to WebSocketDenialResponse * Remove code and status from WebSocketDenialResponse. Just send a regular WebSocketDisconnect even when connection is rejected with close() * Raise an exception if attempting to send a http response and server does not support it. * WebSocketDenialClose and WebSocketDenialResponse These are both instances of WebSocketDenial. * Update starlette/testclient.py Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com> * Revert "WebSocketDenialClose and WebSocketDenialResponse" This reverts commit 71b76e3. * Rename parameters, member variables * Use httpx.Response as the base for WebSocketDenialResponse. * Apply suggestions from code review Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com> * Update sanity check message * Remove un-needed function * Expand error message test regex * Add type hings to test methods * Add doc string to test. * Fix mypy complaining about mismatching parent methods. * nitpick & remove test * Simplify the documentation * Update starlette/testclient.py * Update starlette/testclient.py * Remove an unnecessary test * there is no special "close because of rejection" in the testclient anymore. --------- Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 93e74a4 - Browse repository at this point
Copy the full SHA 93e74a4View commit details -
Added type annotations to test_error.py (#2462)
* added type annotations to test_error.py * Apply suggestions from code review --------- Co-authored-by: Scirlat Danut <scirlatdanut@scirlats-mini.lan> Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for c158ef4 - Browse repository at this point
Copy the full SHA c158ef4View commit details -
Added type annotations to test_endpoints.py (#2478)
* added type annotations to test_endpoints.py * Apply suggestions from code review --------- Co-authored-by: Scirlat Danut <scirlatdanut@scirlats-mini.lan> Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 5253156 - Browse repository at this point
Copy the full SHA 5253156View commit details
Commits on Feb 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6fcd579 - Browse repository at this point
Copy the full SHA 6fcd579View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 0.36.3...0.37.0