Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for test_root (0.29 sec)

  1. tests/test_tutorial/test_conditional_openapi/test_tutorial001.py

        response = client.get("/docs")
        assert response.status_code == 404, response.text
        response = client.get("/redoc")
        assert response.status_code == 404, response.text
    
    
    @needs_pydanticv2
    def test_root():
        client = get_client()
        response = client.get("/")
        assert response.status_code == 200
        assert response.json() == {"message": "Hello World"}
    
    
    @needs_pydanticv2
    def test_default_openapi():
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_path_params/test_tutorial004.py

        response = client.get("/files/home/johndoe/myfile.txt")
        print(response.content)
        assert response.status_code == 200, response.text
        assert response.json() == {"file_path": "home/johndoe/myfile.txt"}
    
    
    def test_root_file_path():
        response = client.get("/files//home/johndoe/myfile.txt")
        print(response.content)
        assert response.status_code == 200, response.text
        assert response.json() == {"file_path": "/home/johndoe/myfile.txt"}
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_bigger_applications/test_main_an.py

                    }
                ]
            }
        )
    
    
    def test_root_token_jessica(client: TestClient):
        response = client.get("/?token=jessica")
        assert response.status_code == 200
        assert response.json() == {"message": "Hello Bigger Applications!"}
    
    
    def test_root_with_no_token(client: TestClient):
        response = client.get("/")
        assert response.status_code == 422
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 24.6K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_bigger_applications/test_main_an_py39.py

                    }
                ]
            }
        )
    
    
    @needs_py39
    def test_root_token_jessica(client: TestClient):
        response = client.get("/?token=jessica")
        assert response.status_code == 200
        assert response.json() == {"message": "Hello Bigger Applications!"}
    
    
    @needs_py39
    def test_root_with_no_token(client: TestClient):
        response = client.get("/")
        assert response.status_code == 422
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_bigger_applications/test_main.py

                    }
                ]
            }
        )
    
    
    def test_root_token_jessica(client: TestClient):
        response = client.get("/?token=jessica")
        assert response.status_code == 200
        assert response.json() == {"message": "Hello Bigger Applications!"}
    
    
    def test_root_with_no_token(client: TestClient):
        response = client.get("/")
        assert response.status_code == 422
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 24.6K bytes
    - Viewed (0)
  6. ci/official/containers/linux_arm64/devel.usertools/squash_testlogs.py

    # need to clarify for shard
    for p in result._elem.xpath(".//error | .//failure"):
      key = re.sub(r"0x\w+", "", p.getparent().get("name", "")) + p.text
      p.text = runfiles_matcher.sub("[testroot]/", p.text)
      source_file = p.getparent().getparent().get("source_file", "")
      p.text += f"\nNOTE: From {source_file}"
      if "bazel_pip" in source_file:
        p.text += (
    Python
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Mon Sep 18 19:00:37 GMT 2023
    - 4.8K bytes
    - Viewed (0)
Back to top