Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for test_options (0.07 sec)

  1. tests/test_extra_routes.py

    
    def test_head():
        response = client.head("/items/foo")
        assert response.status_code == 200, response.text
        assert response.headers["x-fastapi-item-id"] == "foo"
    
    
    def test_options():
        response = client.options("/items/foo")
        assert response.status_code == 200, response.text
        assert response.headers["x-fastapi-item-id"] == "foo"
    
    
    def test_patch():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  2. tests/test_request_params/test_file/test_optional.py

        assert response.json() == {"file_size": None}
    
    
    @pytest.mark.parametrize(
        "path",
        [
            "/optional-bytes",
            "/optional-uploadfile",
        ],
    )
    def test_optional(path: str):
        client = TestClient(app)
        response = client.post(path, files=[("p", b"hello")])
        assert response.status_code == 200
        assert response.json() == {"file_size": 5}
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  3. android-test/build.gradle.kts

          "../okhttp-sse/src/test/java"
        )
      }
    
      compileOptions {
        targetCompatibility(JavaVersion.VERSION_11)
        sourceCompatibility(JavaVersion.VERSION_11)
      }
    
      testOptions {
        targetSdk = 34
        unitTests.isIncludeAndroidResources = true
      }
    
      kotlinOptions {
        jvmTarget = JavaVersion.VERSION_11.toString()
      }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Nov 21 12:33:41 UTC 2025
    - 3.9K bytes
    - Viewed (2)
  4. api/maven-api-core/src/test/java/org/apache/maven/api/JavaPathTypeTest.java

            return expected.replace("/", File.separator).replace(":", File.pathSeparator);
        }
    
        /**
         * Tests the formatting of an option without module name.
         */
        @Test
        public void testOption() {
            String[] formatted = JavaPathType.MODULES.option(paths());
            assertEquals(2, formatted.length);
            assertEquals("--module-path", formatted[0]);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Nov 13 14:20:26 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  5. okhttp/build.gradle.kts

        }
      }
    }
    
    android {
      compileSdk = 35
    
      namespace = "okhttp.okhttp3"
    
      defaultConfig {
        minSdk = 21
    
        consumerProguardFiles("okhttp3.pro")
      }
    
      testOptions {
        unitTests {
          isIncludeAndroidResources = true
        }
      }
    
      sourceSets {
        named("main") {
          manifest.srcFile("src/androidMain/AndroidManifest.xml")
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 01 12:18:11 UTC 2025
    - 12.3K bytes
    - Viewed (0)
Back to top