Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 621 for Wain (0.14 sec)

  1. tests/test_tutorial/test_bigger_applications/test_main_an.py

    import pytest
    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.bigger_applications.app_an.main import app
    
        client = TestClient(app)
        return client
    
    
    def test_users_token_jessica(client: TestClient):
        response = client.get("/users?token=jessica")
        assert response.status_code == 200
    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)
  2. cmd/common-main.go

    Harshavardhana <******@****.***> 1713931727 -0700
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 35.5K bytes
    - Viewed (2)
  3. tests/test_tutorial/test_bigger_applications/test_main_an_py39.py

    import pytest
    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py39
    
    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.bigger_applications.app_an_py39.main import app
    
        client = TestClient(app)
        return client
    
    
    @needs_py39
    def test_users_token_jessica(client: TestClient):
        response = client.get("/users?token=jessica")
    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)
  4. cmd/server-main.go

    Harshavardhana <******@****.***> 1713931727 -0700
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 33K bytes
    - Viewed (1)
  5. cmd/server-main_test.go

    Anis Eleuch <******@****.***> 1701941636 -0800
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Dec 07 09:33:56 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/Project.java

        @Nonnull
        default Artifact getPomArtifact() {
            return getArtifacts().get(0);
        }
    
        /**
         * Returns the project main artifact, which is the artifact produced by this project build, if applicable.
         * This artifact MAY be absent if the project is actually not producing any main artifact (i.e. "pom" packaging).
         *
         * @see #getPackaging()
         * @see org.apache.maven.api.services.ArtifactManager#getPath(Artifact)
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Feb 05 09:42:51 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  7. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultDependencyResolverResult.java

         */
        void addOutputDirectory(Path main, Path test, PathModularizationCache cache) throws IOException {
            if (outputModules != null) {
                throw new IllegalStateException("Output directories must be set first and only once.");
            }
            if (main != null) {
                outputModules = cache.getModuleInfo(main);
                addPathElement(outputModules.getPathType(), main);
            } else {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/testing.md

    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    Because this file is in the same package, you can use relative imports to import the object `app` from the `main` module (`main.py`):
    
    ```Python hl_lines="3"
    {!../../../docs_src/app_testing/test_main.py!}
    ```
    
    ...and have the code for the tests just like before.
    
    ## Testing: extended example
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultDependencyResolverResult.java

         */
        void addOutputDirectory(Path main, Path test, PathModularizationCache cache) throws IOException {
            if (outputModules != null) {
                throw new IllegalStateException("Output directories must be set first and only once.");
            }
            if (main != null) {
                outputModules = cache.getModuleInfo(main);
                addPathElement(outputModules.getPathType(), main);
            } else {
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Fri Mar 01 17:18:13 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_testing/test_tutorial001.py

    from docs_src.app_testing.tutorial001 import client, test_read_main
    
    
    def test_main():
        test_read_main()
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
                "/": {
                    "get": {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 821 bytes
    - Viewed (0)
Back to top