File tree Expand file tree Collapse file tree 4 files changed +9
-14
lines changed
Expand file tree Collapse file tree 4 files changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ bash ./scripts/lint.sh
77# Check README.md is up to date
88diff --brief docs/en/docs/index.md README.md
99export PYTHONPATH=./docs_src
10- pytest --cov=fastapi --cov=tests --cov= docs_src --cov-report=term-missing:skip-covered --cov-report=xml tests ${@ }
10+ pytest --cov=fastapi --cov=docs_src --cov-report=term-missing:skip-covered --cov-report=xml tests ${@ }
Original file line number Diff line number Diff line change 1- import pytest
2-
3- from docs_src .async_tests .test_main import test_root
4-
5-
6- @pytest .mark .asyncio
7- async def test_async_testing ():
8- await test_root ()
1+ from docs_src .async_tests .test_main import test_root # noqa: F401
Original file line number Diff line number Diff line change 1- from docs_src .app_testing .test_main import client , test_read_main
1+ from docs_src .app_testing .test_main import client , test_read_main # noqa: F401
22
33openapi_schema = {
44 "openapi" : "3.0.2" ,
@@ -24,7 +24,3 @@ def test_openapi_schema():
2424 response = client .get ("/openapi.json" )
2525 assert response .status_code == 200 , response .text
2626 assert response .json () == openapi_schema
27-
28-
29- def test_main ():
30- test_read_main ()
Original file line number Diff line number Diff line change 1+ from docs_src .app_testing .test_main_b import test_create_existing_item # noqa: F401
2+ from docs_src .app_testing .test_main_b import test_create_item # noqa: F401
3+ from docs_src .app_testing .test_main_b import test_create_item_bad_token # noqa: F401
4+ from docs_src .app_testing .test_main_b import test_read_inexistent_item # noqa: F401
5+ from docs_src .app_testing .test_main_b import test_read_item # noqa: F401
6+ from docs_src .app_testing .test_main_b import test_read_item_bad_token # noqa: F401
You can’t perform that action at this time.
0 commit comments