Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for test_app (0.31 sec)

  1. src/test/resources/test_app.xml

    Shinsuke Sugaya <******@****.***> 1443966730 +0900
    XML
    - Registered: 2024-02-19 08:04
    - Last Modified: 2015-10-04 13:52
    - 240 bytes
    - Viewed (0)
  2. tests/test_tutorial/test_testing/test_main_b.py

    from docs_src.app_testing.app_b import test_main
    
    
    def test_app():
        test_main.test_create_existing_item()
        test_main.test_create_item()
        test_main.test_create_item_bad_token()
        test_main.test_read_inexistent_item()
        test_main.test_read_item()
    Python
    - Registered: 2024-01-28 07:19
    - Last Modified: 2022-01-07 14:11
    - 299 bytes
    - Viewed (0)
  3. tests/test_tutorial/test_testing/test_main_b_an_py39.py

    from ...utils import needs_py39
    
    
    @needs_py39
    def test_app():
        from docs_src.app_testing.app_b_an_py39 import test_main
    
        test_main.test_create_existing_item()
        test_main.test_create_item()
        test_main.test_create_item_bad_token()
        test_main.test_read_inexistent_item()
        test_main.test_read_item()
    Python
    - Registered: 2024-01-28 07:19
    - Last Modified: 2023-03-18 12:29
    - 356 bytes
    - Viewed (0)
  4. docs_src/settings/app02/test_main.py

    client = TestClient(app)
    
    
    def get_settings_override():
        return Settings(admin_email="******@****.***")
    
    
    app.dependency_overrides[get_settings] = get_settings_override
    
    
    def test_app():
        response = client.get("/info")
        data = response.json()
        assert data == {
            "app_name": "Awesome API",
            "admin_email": "******@****.***",
            "items_per_user": 50,
    Python
    - Registered: 2024-02-18 07:19
    - Last Modified: 2021-07-29 09:26
    - 515 bytes
    - Viewed (0)
  5. docs_src/settings/app02_an_py39/test_main.py

    client = TestClient(app)
    
    
    def get_settings_override():
        return Settings(admin_email="******@****.***")
    
    
    app.dependency_overrides[get_settings] = get_settings_override
    
    
    def test_app():
        response = client.get("/info")
        data = response.json()
        assert data == {
            "app_name": "Awesome API",
            "admin_email": "******@****.***",
            "items_per_user": 50,
    Python
    - Registered: 2024-02-18 07:19
    - Last Modified: 2023-03-18 12:29
    - 515 bytes
    - Viewed (0)
  6. tests/test_tutorial/test_settings/test_app02.py

        assert settings.app_name == "Awesome API"
        assert settings.items_per_user == 50
    
    
    @needs_pydanticv2
    def test_override_settings():
        from docs_src.settings.app02 import test_main
    
    Python
    - Registered: 2024-02-11 07:19
    - Last Modified: 2023-07-07 17:12
    - 488 bytes
    - Viewed (0)
  7. tests/test_tutorial/test_testing/test_main_b_py310.py

    from ...utils import needs_py310
    
    
    @needs_py310
    def test_app():
        from docs_src.app_testing.app_b_py310 import test_main
    
        test_main.test_create_existing_item()
        test_main.test_create_item()
        test_main.test_create_item_bad_token()
        test_main.test_read_inexistent_item()
        test_main.test_read_item()
    Python
    - Registered: 2024-01-28 07:19
    - Last Modified: 2022-01-07 14:11
    - 356 bytes
    - Viewed (0)
  8. docs_src/settings/app02_an/test_main.py

    client = TestClient(app)
    
    
    def get_settings_override():
        return Settings(admin_email="******@****.***")
    
    
    app.dependency_overrides[get_settings] = get_settings_override
    
    
    def test_app():
        response = client.get("/info")
        data = response.json()
        assert data == {
            "app_name": "Awesome API",
            "admin_email": "******@****.***",
            "items_per_user": 50,
    Python
    - Registered: 2024-02-18 07:19
    - Last Modified: 2023-03-18 12:29
    - 515 bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/unit/UnitFessTestCase.java

    import org.dbflute.utflute.lastaflute.WebContainerTestCase;
    
    public abstract class UnitFessTestCase extends WebContainerTestCase {
        @Override
        protected String prepareConfigFile() {
            return "test_app.xml";
        }
    
        @Override
        public void tearDown() throws Exception {
            ComponentUtil.setFessConfig(null);
            super.tearDown();
        }
    Java
    - Registered: 2024-02-19 08:04
    - Last Modified: 2023-01-04 12:40
    - 1K bytes
    - Viewed (0)
  10. tests/test_default_response_class.py

    html_type = "text/html; charset=utf-8"
    override_type = "application/x-override"
    
    
    def test_app():
        with client:
            response = client.get("/")
        assert response.json() == {"msg": "Hello World"}
        assert response.headers["content-type"] == orjson_type
    
    
    def test_app_override():
        with client:
            response = client.get("/override")
        assert response.content == b"Hello World"
    Python
    - Registered: 2024-02-18 07:19
    - Last Modified: 2020-03-01 20:49
    - 5.2K bytes
    - Viewed (0)
Back to top