mirror of https://github.com/tiangolo/fastapi.git
Fix race condition in test
This commit is contained in:
parent
33bf4baf59
commit
dae4442464
|
|
@ -39,6 +39,7 @@ def test_swagger_ui_html(client: TestClient, path_prefix: str):
|
|||
assert f"{path_prefix}/docs/oauth2-redirect" in response.text
|
||||
|
||||
|
||||
@workdir_lock
|
||||
def test_openapi_json(client: TestClient, path_prefix: str):
|
||||
response = client.get(f"{path_prefix}/openapi.json")
|
||||
assert response.request.url == f"http://server{path_prefix}/openapi.json"
|
||||
|
|
|
|||
Loading…
Reference in New Issue