Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for Aare (0.14 sec)

  1. tests/test_tutorial/test_sql_databases/test_testing_databases_py310.py

            test_db.unlink()
        # Import while creating the client to create the DB after starting the test session
        from docs_src.sql_databases.sql_app_py310.tests import test_sql_app
    
        # Ensure import side effects are re-executed
        importlib.reload(test_sql_app)
        test_sql_app.test_create_user()
        if test_db.is_file():  # pragma: nocover
            test_db.unlink()
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 825 bytes
    - Viewed (0)
  2. fastapi/routing.py

                    have their default values. This is different from
                    `response_model_exclude_defaults` in that if the fields are set,
                    they will be included in the response, even if the value is the same
                    as the default.
    
                    When `True`, default values are omitted from the response.
    
                    Read more about it in the
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
  3. tests/test_empty_router.py

            response = client.get("/prefix/")
            assert response.status_code == 200, response.text
            assert response.json() == ["OK"]
    
    
    def test_include_empty():
        # if both include and router.path are empty - it should raise exception
        with pytest.raises(FastAPIError):
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sun Jun 11 22:37:34 GMT 2023
    - 805 bytes
    - Viewed (0)
  4. fastapi/datastructures.py

    from typing_extensions import Annotated, Doc
    
    
    class UploadFile(StarletteUploadFile):
        """
        A file uploaded in a request.
    
        Define it as a *path operation function* (or dependency) parameter.
    
        If you are using a regular `def` function, you can use the `upload_file.file`
        attribute to access the raw standard Python file (blocking, not async), useful and
        needed for non-async code.
    
        Read more about it in the
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  5. bin/diff_yaml.py

        if k2 in res[k1]:
            del res[k1][k2]
    
    
    def normalize_configmap(res):
        try:
            if res['kind'] != "ConfigMap":
                return res
    
            data = res['data']
    
            # some times keys are yamls...
            # so parse them
            for k in data:
                try:
                    op = yaml.safe_load_all(data[k])
                    data[k] = list(op)
                except yaml.YAMLError as ex:
    Python
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Mar 03 16:14:57 GMT 2021
    - 4.5K bytes
    - Viewed (0)
  6. configure.py

          var = False
        else:
          raise UserInputError(
              'Environment variable %s must be set as a boolean indicator.\n'
              'The following are accepted as TRUE : %s.\n'
              'The following are accepted as FALSE: %s.\n'
              'Current value is %s.' %
              (var_name, ', '.join(true_strings), ', '.join(false_strings), var))
    
      while var is None:
    Python
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  7. tests/test_request_body_parameters_media_type.py

    from fastapi import Body, FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    media_type = "application/vnd.api+json"
    
    
    # NOTE: These are not valid JSON:API resources
    # but they are fine for testing requestBody with custom media_type
    class Product(BaseModel):
        name: str
        price: float
    
    
    class Shop(BaseModel):
        name: str
    
    
    @app.post("/products")
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_sql_databases/test_sql_databases_middleware.py

            test_db.unlink()
        # Import while creating the client to create the DB after starting the test session
        from docs_src.sql_databases.sql_app import alt_main
    
        # Ensure import side effects are re-executed
        importlib.reload(alt_main)
    
        with TestClient(alt_main.app) as c:
            yield c
        if test_db.is_file():  # pragma: nocover
            test_db.unlink()
    
    
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  9. ci/official/containers/linux_arm64/devel.usertools/squash_testlogs.py

    of them that contain failures into one file. The TensorFlow DevInfra team
    uses this to generate a simple overview of an entire pip and nonpip test
    invocation, since the normal logs that Bazel creates are too large for the
    internal invocation viewer.
    """
    import collections
    import os
    import re
    import subprocess
    import sys
    from junitparser import JUnitXml
    
    result = JUnitXml()
    try:
    Python
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 19:00:37 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  10. fastapi/security/oauth2.py

        collected using form data (instead of JSON) and that it should have the specific
        fields `username` and `password`.
    
        All the initialization parameters are extracted from the request.
    
        Read more about it in the
        [FastAPI docs for Simple OAuth2 with Password and Bearer](https://fastapi.tiangolo.com/tutorial/security/simple-oauth2/).
    
        ## Example
    
        ```python
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 21.1K bytes
    - Viewed (1)
Back to top