10000 fix more >:) · fastapi/fastapi@42e8e73 · GitHub
[go: up one dir, main page]

Skip to content

Commit 42e8e73

Browse files
committed
fix more >:)
1 parent 657a447 commit 42e8e73

File tree

4 files changed

+9
-14
lines changed

4 files changed

+9
-14
lines changed

scripts/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ bash ./scripts/lint.sh
77
# Check README.md is up to date
88
diff --brief docs/en/docs/index.md README.md
99
export 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 ${@}
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
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

tests/test_tutorial/test_testing/test_main.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

33
openapi_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()
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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

0 commit comments

Comments
 (0)
0