Search Options

Results per page
Sort
Preferred Languages
Advance

Results 281 - 290 of 1,036 for AssertJ (0.17 sec)

  1. tests/test_tutorial/test_body_multiple_params/test_tutorial003_an.py

            "/items/5",
            json={
                "importance": 2,
                "item": {"name": "Foo", "price": 50.5},
                "user": {"username": "Dave"},
            },
        )
        assert response.status_code == 200
        assert response.json() == {
            "item_id": 5,
            "importance": 2,
            "item": {
                "name": "Foo",
                "price": 50.5,
                "description": None,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_body_multiple_params/test_tutorial003_an_py310.py

            "/items/5",
            json={
                "importance": 2,
                "item": {"name": "Foo", "price": 50.5},
                "user": {"username": "Dave"},
            },
        )
        assert response.status_code == 200
        assert response.json() == {
            "item_id": 5,
            "importance": 2,
            "item": {
                "name": "Foo",
                "price": 50.5,
                "description": None,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_body_multiple_params/test_tutorial003_an_py39.py

            "/items/5",
            json={
                "importance": 2,
                "item": {"name": "Foo", "price": 50.5},
                "user": {"username": "Dave"},
            },
        )
        assert response.status_code == 200
        assert response.json() == {
            "item_id": 5,
            "importance": 2,
            "item": {
                "name": "Foo",
                "price": 50.5,
                "description": None,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_metadata/test_tutorial004.py

    
    def test_path_operations():
        response = client.get("/items/")
        assert response.status_code == 200, response.text
        response = client.get("/users/")
        assert response.status_code == 200, response.text
    
    
    def test_openapi_schema():
        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 Jun 30 18:25:16 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. tests/test_security_oauth2_optional.py

        assert response.status_code == 200, response.text
        assert response.json() == {"username": "Bearer footokenbar"}
    
    
    def test_security_oauth2_password_other_header():
        response = client.get("/users/me", headers={"Authorization": "Other footokenbar"})
        assert response.status_code == 200, response.text
        assert response.json() == {"username": "Other footokenbar"}
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_separate_openapi_schemas/test_tutorial001_py310.py

        response = client.post("/items/", json={"name": "Foo"})
        assert response.status_code == 200, response.text
        assert response.json() == {"name": "Foo", "description": None}
    
    
    @needs_py310
    def test_read_items(client: TestClient) -> None:
        response = client.get("/items/")
        assert response.status_code == 200, response.text
        assert response.json() == [
            {
                "name": "Portal Gun",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 28 04:14:40 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_separate_openapi_schemas/test_tutorial002.py

        response = client.post("/items/", json={"name": "Foo"})
        assert response.status_code == 200, response.text
        assert response.json() == {"name": "Foo", "description": None}
    
    
    def test_read_items(client: TestClient) -> None:
        response = client.get("/items/")
        assert response.status_code == 200, response.text
        assert response.json() == [
            {
                "name": "Portal Gun",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 25 19:10:22 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  8. tests/test_union_body.py

    
    def test_post_other_item():
        response = client.post("/items/", json={"price": 100})
        assert response.status_code == 200, response.text
        assert response.json() == {"item": {"price": 100}}
    
    
    def test_post_item():
        response = client.post("/items/", json={"name": "Foo"})
        assert response.status_code == 200, response.text
        assert response.json() == {"item": {"name": "Foo"}}
    
    
    def test_openapi_schema():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_websockets/test_tutorial003_py39.py

            client1_says = "Client #1234 says: Hello from 1234"
            assert data2 == client1_says
            data1 = connection.receive_text()
            assert data1 == client1_says
            connection_two.close()
            data1 = connection.receive_text()
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  10. container-tests/src/test/java/okhttp3/containers/BasicLoomTest.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.containers
    
    import assertk.assertThat
    import assertk.assertions.contains
    import assertk.assertions.isEmpty
    import assertk.assertions.isNotEmpty
    import java.io.ByteArrayOutputStream
    import java.io.PrintStream
    import java.util.concurrent.ExecutorService
    import java.util.concurrent.Executors
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 11:15:46 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top