mirror of https://github.com/tiangolo/fastapi.git
🔇 Remove debugging prints
This commit is contained in:
parent
23ef570bf6
commit
b38fb937b0
|
|
@ -143,6 +143,5 @@ item_id_not_int = {
|
||||||
)
|
)
|
||||||
def test_post_body(path, body, expected_status, expected_response):
|
def test_post_body(path, body, expected_status, expected_response):
|
||||||
response = client.put(path, json=body)
|
response = client.put(path, json=body)
|
||||||
print(response.text)
|
|
||||||
assert response.status_code == expected_status
|
assert response.status_code == expected_status
|
||||||
assert response.json() == expected_response
|
assert response.json() == expected_response
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
import sys
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from starlette.testclient import TestClient
|
from starlette.testclient import TestClient
|
||||||
|
|
||||||
|
|
@ -8,8 +6,6 @@ from body_schema.tutorial001 import app
|
||||||
client = TestClient(app)
|
client = TestClient(app)
|
||||||
|
|
||||||
|
|
||||||
print(sys.path)
|
|
||||||
|
|
||||||
openapi_schema = {
|
openapi_schema = {
|
||||||
"openapi": "3.0.2",
|
"openapi": "3.0.2",
|
||||||
"info": {"title": "Fast API", "version": "0.1.0"},
|
"info": {"title": "Fast API", "version": "0.1.0"},
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
import sys
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from starlette.testclient import TestClient
|
from starlette.testclient import TestClient
|
||||||
|
|
||||||
|
|
@ -8,8 +6,6 @@ from header_params.tutorial001 import app
|
||||||
client = TestClient(app)
|
client = TestClient(app)
|
||||||
|
|
||||||
|
|
||||||
print(sys.path)
|
|
||||||
|
|
||||||
openapi_schema = {
|
openapi_schema = {
|
||||||
"openapi": "3.0.2",
|
"openapi": "3.0.2",
|
||||||
"info": {"title": "Fast API", "version": "0.1.0"},
|
"info": {"title": "Fast API", "version": "0.1.0"},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue