Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for devel (0.15 sec)

  1. tests/test_response_model_data_filter_no_inheritance.py

        return [pet1, pet2]
    
    
    client = TestClient(app)
    
    
    def test_filter_top_level_model():
        response = client.post(
            "/users", json={"email": "******@****.***", "password": "secret"}
        )
        assert response.json() == {"email": "******@****.***"}
    
    
    def test_filter_second_level_model():
        response = client.get("/pets/1")
        assert response.json() == {
            "name": "Nibbler",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  2. tensorflow/api_template.__init__.py

    # See the License for the specific language governing permissions and
    # limitations under the License.
    # ==============================================================================
    """
    Top-level module of TensorFlow. By convention, we refer to this module as
    `tf` instead of `tensorflow`, following the common practice of importing
    TensorFlow via the command `import tensorflow as tf`.
    
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 05 06:27:59 GMT 2024
    - 6.7K bytes
    - Viewed (3)
  3. .github/actions/notify-translations/app/main.py

        return response.data.updateDiscussionComment.comment
    
    
    if __name__ == "__main__":
        settings = Settings()
        if settings.input_debug:
            logging.basicConfig(level=logging.DEBUG)
        else:
            logging.basicConfig(level=logging.INFO)
        logging.debug(f"Using config: {settings.json()}")
        g = Github(settings.input_token.get_secret_value())
        repo = g.get_repo(settings.github_repository)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Sep 27 23:01:46 GMT 2023
    - 12.4K bytes
    - Viewed (0)
  4. .github/actions/people/app/main.py

                        "avatarUrl": author.avatarUrl,
                        "url": author.url,
                    }
                )
        return users
    
    
    if __name__ == "__main__":
        logging.basicConfig(level=logging.INFO)
        settings = Settings()
        logging.info(f"Using config: {settings.model_dump_json()}")
        g = Github(settings.input_token.get_secret_value())
        repo = g.get_repo(settings.github_repository)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Mar 26 17:38:21 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  5. tests/test_response_model_data_filter.py

        return [pet1, pet2]
    
    
    client = TestClient(app)
    
    
    def test_filter_top_level_model():
        response = client.post(
            "/users", json={"email": "******@****.***", "password": "secret"}
        )
        assert response.json() == {"email": "******@****.***"}
    
    
    def test_filter_second_level_model():
        response = client.get("/pets/1")
        assert response.json() == {
            "name": "Nibbler",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  6. scripts/docs.py

    import mkdocs.commands.build
    import mkdocs.commands.serve
    import mkdocs.config
    import mkdocs.utils
    import typer
    import yaml
    from jinja2 import Template
    
    logging.basicConfig(level=logging.INFO)
    
    app = typer.Typer()
    
    mkdocs_name = "mkdocs.yml"
    
    missing_translation_snippet = """
    {!../../../docs/missing-translation.md!}
    """
    
    docs_path = Path("docs")
    en_docs_path = Path("docs/en")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Jan 22 19:26:14 GMT 2024
    - 10.9K bytes
    - Viewed (1)
  7. tests/test_include_router_defaults_overrides.py

                            "501": {"description": "Server error level 1"},
                            "502": {"description": "Server error level 2"},
                            "503": {"description": "Server error level 3"},
                            "504": {"description": "Server error level 4"},
                            "505": {"description": "Server error level 5"},
                        },
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 358.6K bytes
    - Viewed (0)
  8. ci/official/utilities/extract_resultstore_links.py

              break
          k -= 1
          continue
        previous_end_line = lines.get('end') or start_line
    
      return result_store_links
    
    
    def indent_xml(elem, level=0) -> None:
      """Indents and newlines the XML for better output."""
      indent_str = '\n' + level * '  '
      if len(elem):  # pylint: disable=g-explicit-length-test  # `if elem` not valid
        if not elem.text or not elem.text.strip():
          elem.text = indent_str + '  '
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Nov 08 17:50:27 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  9. tests/test_custom_schema_fields.py

        name: str
    
        if PYDANTIC_V2:
            model_config = {
                "json_schema_extra": {
                    "x-something-internal": {"level": 4},
                }
            }
        else:
    
            class Config:
                schema_extra = {
                    "x-something-internal": {"level": 4},
                }
    
    
    @app.get("/foo", response_model=Item)
    def foo():
        return {"name": "Foo item"}
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  10. fastapi/openapi/docs.py

                ) && !oauth2.auth.code) {
                    if (!isValid) {
                        oauth2.errCb({
                            authId: oauth2.auth.name,
                            source: "auth",
                            level: "warning",
                            message: "Authorization may be unsafe, passed state was changed in server. The passed state wasn't returned from auth server."
                        });
                    }
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 10.1K bytes
    - Viewed (0)
Back to top