Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for catch_warnings (0.07 sec)

  1. tests/test_generate_unique_id_function.py

            return item1  # pragma: nocover
    
        @app.post("/third")
        def post_third(item1: Item):
            return item1  # pragma: nocover
    
        client = TestClient(app)
        with warnings.catch_warnings(record=True) as w:
            warnings.simplefilter("always")
            client.get("/openapi.json")
            assert len(w) >= 2
            duplicate_warnings = [
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Jan 13 15:10:26 UTC 2024
    - 66.7K bytes
    - Viewed (0)
Back to top