mirror of
https://github.com/fastapi/fastapi.git
synced 2026-05-14 02:35:51 -04:00
🐛 Fix issue with Swagger theme change example in the official tutorial (#13289)
This commit is contained in:
@@ -12,7 +12,7 @@ def test_swagger_ui():
|
||||
'"syntaxHighlight": false' not in response.text
|
||||
), "not used parameters should not be included"
|
||||
assert (
|
||||
'"syntaxHighlight.theme": "obsidian"' in response.text
|
||||
'"syntaxHighlight": {"theme": "obsidian"}' in response.text
|
||||
), "parameters with middle dots should be included in a JSON compatible way"
|
||||
assert (
|
||||
'"dom_id": "#swagger-ui"' in response.text
|
||||
|
||||
Reference in New Issue
Block a user