Search Options

Results per page
Sort
Preferred Languages
Advance

Results 541 - 550 of 1,109 for assertIs (0.12 sec)

  1. okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

     * limitations under the License.
     */
    package okhttp3.internal.connection
    
    import assertk.assertThat
    import assertk.assertions.containsExactly
    import assertk.assertions.isEqualTo
    import assertk.assertions.isFalse
    import assertk.assertions.isSameAs
    import assertk.assertions.isTrue
    import java.io.IOException
    import java.net.InetAddress
    import java.net.InetSocketAddress
    import java.net.Proxy
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Mar 06 17:33:38 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/connection/InetAddressOrderTest.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package okhttp3.internal.connection
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import java.net.Inet4Address
    import java.net.Inet6Address
    import org.junit.jupiter.api.Test
    
    @Suppress("ktlint:standard:property-naming")
    class InetAddressOrderTest {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. pom.xml

    				<configuration>
    					<header>https://www.codelibs.org/assets/license/header.txt</header>
    					<properties>
    						<year>2022</year>
    					</properties>
    					<includes>
    						<include>src/**/*.java</include>
    					</includes>
    					<encoding>UTF-8</encoding>
    					<headerDefinitions>
    						<headerDefinition>https://www.codelibs.org/assets/license/header-definition-2.xml</headerDefinition>
    					</headerDefinitions>
    Registered: Thu Oct 31 02:32:13 UTC 2024
    - Last Modified: Thu Oct 03 17:04:48 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. tests/test_datetime_custom_encoder.py

        @app.get("/model", response_model=ModelWithDatetimeField)
        def get_model():
            return model
    
        client = TestClient(app)
        with client:
            response = client.get("/model")
        assert response.json() == {"dt_field": "2019-01-01T08:00:00+00:00"}
    
    
    # TODO: remove when deprecating Pydantic v1
    @needs_pydanticv1
    def test_pydanticv1():
        class ModelWithDatetimeField(BaseModel):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/test/kotlin/okhttp3/OkHttpClientTestRuleTest.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.hasMessage
    import kotlin.test.assertFailsWith
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.BeforeEachCallback
    import org.junit.jupiter.api.extension.ExtensionContext
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_testing/test_tutorial001.py

    from docs_src.app_testing.tutorial001 import client, test_read_main
    
    
    def test_main():
        test_read_main()
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
                "/": {
                    "get": {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 821 bytes
    - Viewed (0)
  7. tests/test_tutorial/test_dependencies/test_tutorial001_an_py310.py

        response = client.get(path)
        assert response.status_code == expected_status
        assert response.json() == expected_response
    
    
    @needs_py310
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_schema_extra_example/test_tutorial004_an_py39.py

                "price": 35.4,
                "tax": 3.2,
            },
        )
        assert response.status_code == 200
    
    
    @needs_py39
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_schema_extra_example/test_tutorial004_py310.py

                "price": 35.4,
                "tax": 3.2,
            },
        )
        assert response.status_code == 200
    
    
    @needs_py310
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_settings/test_tutorial001_pv1.py

        monkeypatch.setenv("ADMIN_EMAIL", "******@****.***")
        from docs_src.settings.tutorial001_pv1 import app
    
        client = TestClient(app)
        response = client.get("/info")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "app_name": "Awesome API",
            "admin_email": "******@****.***",
            "items_per_user": 50,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 556 bytes
    - Viewed (0)
Back to top