Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 45 for baseUrl (0.07 seconds)

  1. docs_src/async_tests/app_a_py310/test_main.py

    import pytest
    from httpx import ASGITransport, AsyncClient
    
    from .main import app
    
    
    @pytest.mark.anyio
    async def test_root():
        async with AsyncClient(
            transport=ASGITransport(app=app), base_url="http://test"
        ) as ac:
            response = await ac.get("/")
        assert response.status_code == 200
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 360 bytes
    - Click Count (0)
  2. tests/test_tutorial/test_advanced_middleware/test_tutorial001.py

    from fastapi.testclient import TestClient
    
    from docs_src.advanced_middleware.tutorial001_py310 import app
    
    
    def test_middleware():
        client = TestClient(app, base_url="https://testserver")
        response = client.get("/")
        assert response.status_code == 200, response.text
    
        client = TestClient(app)
        response = client.get("/", follow_redirects=False)
        assert response.status_code == 307, response.text
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 480 bytes
    - Click Count (0)
  3. tests/test_tutorial/test_behind_a_proxy/test_tutorial001_01.py

    from fastapi.testclient import TestClient
    
    from docs_src.behind_a_proxy.tutorial001_01_py310 import app
    
    client = TestClient(
        app,
        base_url="https://example.com",
        follow_redirects=False,
    )
    
    
    def test_redirect() -> None:
        response = client.get("/items")
        assert response.status_code == 307
        assert response.headers["location"] == "https://example.com/items/"
    
    
    def test_no_redirect() -> None:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 545 bytes
    - Click Count (0)
  4. tests/test_no_swagger_ui_redirect.py

        response = client.get("/docs")
        assert response.status_code == 200, response.text
        assert response.headers["content-type"] == "text/html; charset=utf-8"
        assert "swagger-ui-dist" in response.text
        print(client.base_url)
        assert "oauth2RedirectUrl" not in response.text
    
    
    def test_swagger_ui_no_oauth2_redirect():
        response = client.get("/docs/oauth2-redirect")
        assert response.status_code == 404, response.text
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Apr 08 04:37:38 GMT 2020
    - 786 bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/it/search/HealthApiTests.java

    /**
     * Integration tests for the Health API (/api/v1/health)
     */
    @Tag("it")
    public class HealthApiTests extends ITBase {
    
        @BeforeAll
        protected static void initAll() {
            RestAssured.baseURI = getFessUrl();
            settingTestToken();
        }
    
        @AfterAll
        protected static void tearDownAll() {
            deleteTestToken();
        }
    
        @Test
        public void testHealthCheck_ok() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  6. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ForbiddenPatternsTask.java

                    .filter(i -> allPatterns.matcher(lines.get(i)).find())
                    .boxed()
                    .collect(Collectors.toList());
    
                URI baseUri = getRootDir().orElse(projectLayout.getProjectDirectory().getAsFile()).get().toURI();
                String path = baseUri.relativize(f.toURI()).toString();
                failures.addAll(
                    invalidLines.stream()
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 6.8K bytes
    - Click Count (0)
  7. docs/en/docs/reference/websockets.md

    ///
    
    ::: fastapi.WebSocket
        options:
            members:
                - scope
                - app
                - url
                - base_url
                - headers
                - query_params
                - path_params
                - cookies
                - client
                - state
                - url_for
                - client_state
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 04 12:41:54 GMT 2026
    - 2K bytes
    - Click Count (0)
  8. compat/maven-model-builder/src/site/apt/index.apt

    <<<pom.basedir>>> (<deprecated>)\
    <<<basedir>>> (<deprecated>) | the directory containing the <<<pom.xml>>> file | <<<$\{project.basedir\}>>> |
    *----+------+------+
    | <<<project.baseUri>>>\
    <<<pom.baseUri>>> (<deprecated>) | the directory containing the <<<pom.xml>>> file as URI | <<<$\{project.baseUri\}>>> |
    *----+------+------+
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jan 03 08:42:52 GMT 2025
    - 13.2K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/it/search/LabelsApiTests.java

        private static final String TEST_LABEL_VALUE = "labelsApiTest_value";
        private static String testLabelId;
    
        @BeforeAll
        protected static void initAll() {
            RestAssured.baseURI = getFessUrl();
            settingTestToken();
        }
    
        @AfterAll
        protected static void tearDownAll() {
            if (testLabelId != null) {
                deleteLabel(testLabelId);
            }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/it/search/PopularWordsApiTests.java

    /**
     * Integration tests for the Popular Words API (/api/v1/popular-words)
     */
    @Tag("it")
    public class PopularWordsApiTests extends ITBase {
    
        @BeforeAll
        protected static void initAll() {
            RestAssured.baseURI = getFessUrl();
            settingTestToken();
        }
    
        @AfterAll
        protected static void tearDownAll() {
            deleteTestToken();
        }
    
        @Test
        public void testPopularWords_ok() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 3.6K bytes
    - Click Count (0)
Back to Top