pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/fastapi/fastapi-cli/pull/64.diff

"factory": False, } assert "Using import string: single_file_app:app" in result.output assert "Starting production server 🚀" in result.output @@ -428,6 +438,7 @@ def test_dev_with_import_string() -> None: "root_path": "", "proxy_headers": True, "log_config": get_uvicorn_log_config(), + "factory": False, } assert "Using import string: single_file_app:api" in result.output @@ -449,6 +460,7 @@ def test_run_with_import_string() -> None: "root_path": "", "proxy_headers": True, "log_config": get_uvicorn_log_config(), + "factory": False, } assert "Using import string: single_file_app:app" in result.output diff --git a/tests/test_discover.py b/tests/test_discover.py index b1052050..2c42ec6b 100644 --- a/tests/test_discover.py +++ b/tests/test_discover.py @@ -15,7 +15,7 @@ def test_get_import_data_from_import_string_valid() -> None: result = get_import_data_from_import_string("module.submodule:app") assert isinstance(result, ImportData) - assert result.app_name == "app" + assert result.candidate_name == "app" assert result.import_string == "module.submodule:app" assert result.module_data.module_import_str == "module.submodule" assert result.module_data.extra_sys_path == Path(".").resolve() diff --git a/tests/test_utils_package.py b/tests/test_utils_package.py index 407561da..595c4222 100644 --- a/tests/test_utils_package.py +++ b/tests/test_utils_package.py @@ -174,7 +174,8 @@ def test_package_dir_no_app() -> None: with pytest.raises(FastAPICLIException) as e: get_import_data(path=Path("package/core/utils.py")) assert ( - "Could not find FastAPI app in module, try using --app" in e.value.args[0] + "Could not find FastAPI app or app factory in module, try using --app" + in e.value.args[0] ) pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy