- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for covered (0.04 sec)
-
tests/test_tutorial/test_schema_extra_example/test_tutorial005.py
"tax": 3.2, }, }, "converted": { "summary": "An example with converted data", "description": "FastAPI can convert price `strings` to actual `numbers` automatically",
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 6.1K bytes - Viewed (0) -
tests/test_tutorial/test_query_params_str_validations/test_tutorial006c.py
) def test_query_params_str_validations_no_query(client: TestClient): response = client.get("/items/") assert response.status_code == 200 assert response.json() == { # pragma: no cover "items": [{"item_id": "Foo"}, {"item_id": "Bar"}], } @pytest.mark.xfail( reason="Code example is not valid. See https://github.com/fastapi/fastapi/issues/12419" )
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 5K bytes - Viewed (0) -
fastapi/_compat/shared.py
) -> bool: try: return isinstance(cls, type) and issubclass(cls, class_or_tuple) # type: ignore[arg-type] except TypeError: # pragma: no cover if isinstance(cls, WithArgsTypes): return False raise # pragma: no cover def _annotation_is_sequence(annotation: Union[type[Any], None]) -> bool: if lenient_issubclass(annotation, (str, bytes)): return FalseRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 6.7K bytes - Viewed (0) -
docs/en/docs/how-to/graphql.md
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 3.4K bytes - Viewed (0) -
tests/test_tutorial/test_debugging/test_tutorial001.py
client = TestClient(mod.app) return client def test_uvicorn_run_is_not_called_on_import(): if sys.modules.get(MOD_NAME): del sys.modules[MOD_NAME] # pragma: no cover with unittest.mock.patch("uvicorn.run") as uvicorn_run_mock: importlib.import_module(MOD_NAME) uvicorn_run_mock.assert_not_called() def test_get_root(client: TestClient):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 1.8K bytes - Viewed (0) -
docs/en/docs/advanced/dataclasses.md
You can also use `dataclasses` in the `response_model` parameter: {* ../../docs_src/dataclasses_/tutorial002_py310.py hl[1,6:12,18] *} The dataclass will be automatically converted to a Pydantic dataclass. This way, its schema will show up in the API docs user interface: <img src="/img/tutorial/dataclasses/image01.png">Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 4.2K bytes - Viewed (0) -
docs/en/docs/release-notes.md
* 📝 Add dark mode auto switch to docs based on OS preference. PR [#4869](https://github.com/tiangolo/fastapi/pull/4869) by [@ComicShrimp](https://github.com/ComicShrimp). * 🔥 Remove un-used old pending tests, already covered in other places. PR [#4891](https://github.com/tiangolo/fastapi/pull/4891) by [@tiangolo](https://github.com/tiangolo).
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 19:06:15 UTC 2025 - 586.7K bytes - Viewed (0) -
pyproject.toml
"docs_src/settings/app03_py39/config_pv1.py", "docs_src/settings/app03_an_py39/config_pv1.py", "docs_src/settings/tutorial001_pv1_py39.py", ] [tool.coverage.report] show_missing = true sort = "-Cover" [tool.coverage.html] show_contexts = true [tool.ruff.lint] select = [ "E", # pycodestyle errors "W", # pycodestyle warnings "F", # pyflakes "I", # isort
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 9.3K bytes - Viewed (0) -
fastapi/openapi/models.py
try: import email_validator assert email_validator # make autoflake ignore the unused import from pydantic import EmailStr except ImportError: # pragma: no cover class EmailStr(str): # type: ignore @classmethod def __get_validators__(cls) -> Iterable[Callable[..., Any]]: yield cls.validate @classmethodRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 15.1K bytes - Viewed (0) -
fastapi/_compat/v2.py
try: from pydantic_core.core_schema import ( with_info_plain_validator_function as with_info_plain_validator_function, ) except ImportError: # pragma: no cover from pydantic_core.core_schema import ( general_plain_validator_function as with_info_plain_validator_function, # noqa: F401 ) RequiredParam = PydanticUndefined Undefined = PydanticUndefinedRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 19.1K bytes - Viewed (0)