Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 69 for test_app (0.16 sec)

  1. 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,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Jul 29 09:26:07 UTC 2021
    - 515 bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/script/groovy/GroovyEngineTest.java

    public class GroovyEngineTest extends LastaFluteTestCase {
        public GroovyEngine groovyEngine;
    
        @Override
        protected String prepareConfigFile() {
            return "test_app.xml";
        }
    
        @Override
        protected boolean isSuppressTestCaseTransaction() {
            return true;
        }
    
        @Override
        public void setUp() throws Exception {
            super.setUp();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 17 12:10:08 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. tests/test_openapi_servers.py

            },
            {"url": "https://prod.example.com"},
        ]
    )
    
    
    @app.get("/foo")
    def foo():
        return {"message": "Hello World"}
    
    
    client = TestClient(app)
    
    
    def test_app():
        response = client.get("/foo")
        assert response.status_code == 200, response.text
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. 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();
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1K bytes
    - Viewed (0)
  5. tests/test_default_response_class_router.py

    )
    
    
    client = TestClient(app)
    
    json_type = "application/json"
    text_type = "text/plain; charset=utf-8"
    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"] == json_type
    
    
    def test_app_override():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Mar 01 20:49:20 UTC 2020
    - 5K bytes
    - Viewed (0)
  6. tests/test_ws_router.py

        app.include_router(router)
        app.include_router(prefix_router, prefix="/prefix")
        app.include_router(native_prefix_route)
        return app
    
    
    app = make_app(app)
    
    
    def test_app():
        client = TestClient(app)
        with client.websocket_connect("/") as websocket:
            data = websocket.receive_text()
            assert data == "Hello, world!"
    
    
    def test_router():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Jun 11 19:08:14 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  7. tests/test_default_response_class.py

    
    client = TestClient(app)
    
    orjson_type = "application/x-orjson"
    text_type = "text/plain; charset=utf-8"
    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():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Mar 01 20:49:20 UTC 2020
    - 5.2K bytes
    - Viewed (0)
  8. tensorflow/c/BUILD

            "//tensorflow/core:test",
            "//tensorflow/core:test_main",
        ],
    )
    
    tf_custom_op_library(
        name = "test_op1.so",
        srcs = ["test_op1.cc"],
    )
    
    tf_kernel_library(
        name = "test_op_kernel",
        srcs = ["test_op.cc"],
        deps = [
            "//tensorflow/core:framework",
            "//tensorflow/core:lib",
        ],
        alwayslink = 1,
    )
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Nov 02 06:47:06 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  9. fess-crawler/src/test/resources/extractor/msoffice/test_as.xlsx

    Shinsuke Sugaya <******@****.***> 1444529815 +0900
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sun Oct 11 02:16:55 UTC 2015
    - 9K bytes
    - Viewed (0)
  10. fess-crawler/src/test/resources/extractor/msoffice/test_as.doc

    Shinsuke Sugaya <******@****.***> 1444529815 +0900
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sun Oct 11 02:16:55 UTC 2015
    - 25.5K bytes
    - Viewed (0)
Back to top