Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 27 for test_app (0.18 sec)

  1. tests/test_tutorial/test_request_files/test_tutorial002_an_py39.py

    import pytest
    from dirty_equals import IsDict
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py39
    
    
    @pytest.fixture(name="app")
    def get_app():
        from docs_src.request_files.tutorial002_an_py39 import app
    
        return app
    
    
    @pytest.fixture(name="client")
    def get_client(app: FastAPI):
        client = TestClient(app)
        return client
    
    
    @needs_py39
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/genericapiserver_test.go

    			NegotiatedSerializer:   codecs,
    			Scheme:                 scheme,
    		}
    	}
    
    	apis := []APIGroupInfo{
    		testAPI(schema.GroupVersion{Group: "", Version: "v1"}),
    		testAPI(schema.GroupVersion{Group: extensionsGroupName, Version: "v1"}),
    		testAPI(schema.GroupVersion{Group: "batch", Version: "v1"}),
    	}
    
    	err = s.InstallLegacyAPIGroup("/apiPrefix", &apis[0])
    	assert.NoError(err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py

    import pytest
    from dirty_equals import IsDict
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(name="app")
    def get_app():
        from docs_src.request_forms_and_files.tutorial001 import app
    
        return app
    
    
    @pytest.fixture(name="client")
    def get_client(app: FastAPI):
        client = TestClient(app)
        return client
    
    
    def test_post_form_no_body(client: TestClient):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_request_forms_and_files/test_tutorial001_an_py39.py

    import pytest
    from dirty_equals import IsDict
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py39
    
    
    @pytest.fixture(name="app")
    def get_app():
        from docs_src.request_forms_and_files.tutorial001_an_py39 import app
    
        return app
    
    
    @pytest.fixture(name="client")
    def get_client(app: FastAPI):
        client = TestClient(app)
        return client
    
    
    @needs_py39
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/experimental/tac/transforms/tac_filter.cc

              function_name_pattern: "testFunctionInclude"
              filter_type: INCLUDE_TARGET_ANNOTATION
            }
          }
          tac_filters {
            op_filter {
              op_name_pattern: "^test_op"
            }
          }
        )",
                                            &test_tac_filters);
        tac_filters_ = &test_tac_filters;
      }
    
      if (!tac_filters_) {
        return;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. tensorflow/c/c_api_test.cc

      string api_def_overwrites = R"(op: <
      graph_op_name: "TestCApi"
      summary: "New summary"
    >
    )";
      status = TF_NewStatus();
      TF_ApiDefMapPut(api_def_map, api_def_overwrites.c_str(),
                      api_def_overwrites.size(), status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TF_DeleteStatus(status);
    
      string op_name = "TestCApi";
      status = TF_NewStatus();
      auto* api_def_buf =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  7. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-param-test.h

      // You can implement all the usual class fixture members here.
    };
    
    // Then, use the TEST_P macro to define as many parameterized tests
    // for this fixture as you want. The _P suffix is for "parameterized"
    // or "pattern", whichever you prefer to think.
    
    TEST_P(FooTest, DoesBlah) {
      // Inside a test, access the test parameter with the GetParam() method
      // of the TestWithParam<T> class:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 74.1K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftApplicationIntegrationTest.groovy

                apply plugin: 'swift-application'
                application.module = 'TestApp'
             """
    
            expect:
            succeeds "assemble"
            result.assertTasksExecuted(":compileDebugSwift", ":linkDebug", ":installDebug", ":assemble")
    
            file("build/obj/main/debug").assertIsDir()
            executable("build/exe/main/debug/TestApp").assertExists()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 12:43:37 UTC 2024
    - 40.2K bytes
    - Viewed (0)
  9. tensorflow/BUILD

        ],
        output_dir = "_api/v1/",
        output_files = TENSORFLOW_API_INIT_FILES_V1,
        output_package = "tensorflow._api.v1",
        packages_to_ignore = ["tensorflow.python.framework.test_ops"],
        root_file_name = "v1.py",
        root_init_template = "api_template_v1.__init__.py",
    )
    
    generate_apis(
        name = "tf_python_api_gen_v2",
        api_packages_file_name = "api_packages.txt",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 16:51:59 UTC 2024
    - 53.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util_test.cc

      }
      return true;
    }
    
    using DeviceNames = llvm::SmallVector<std::string, 8>;
    
    struct ParameterizedDeviceSetTest
        : ::testing::TestWithParam<std::tuple<DeviceNames, std::string>> {};
    
    TEST_P(ParameterizedDeviceSetTest, BadDeviceSet) {
      llvm::SmallVector<Device, 8> devices;
      ASSERT_TRUE(DeviceNamesToParsedNames(std::get<0>(GetParam()), &devices));
      std::string topology_attr;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 46.8K bytes
    - Viewed (0)
Back to top