Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 109 for test_fail (1.06 sec)

  1. tests/test_tutorial/test_templates/test_tutorial001.py

    import os
    import shutil
    
    from fastapi.testclient import TestClient
    
    
    def test_main():
        if os.path.isdir("./static"):  # pragma: nocover
            shutil.rmtree("./static")
        if os.path.isdir("./templates"):  # pragma: nocover
            shutil.rmtree("./templates")
        shutil.copytree("./docs_src/templates/templates/", "./templates")
        shutil.copytree("./docs_src/templates/static/", "./static")
        from docs_src.templates.tutorial001 import app
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jan 11 22:25:37 UTC 2024
    - 910 bytes
    - Viewed (0)
  2. tests/test_tutorial/test_behind_a_proxy/test_tutorial004.py

    from dirty_equals import IsOneOf
    from fastapi.testclient import TestClient
    
    from docs_src.behind_a_proxy.tutorial004 import app
    
    client = TestClient(app)
    
    
    def test_main():
        response = client.get("/app")
        assert response.status_code == 200
        assert response.json() == {"message": "Hello World", "root_path": "/api/v1"}
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/BUILD

            "@com_google_absl//absl/log",
            "@com_google_absl//absl/strings",
            "@local_xla//xla:statusor",
        ],
    )
    
    cc_library(
        name = "test_util",
        testonly = 1,
        srcs = ["test_util.cc"],
        hdrs = ["test_util.h"],
        deps = [
            ":shape_inference",
            "//tensorflow/core:core_cpu",
            "//tensorflow/core:core_cpu_base",
            "//tensorflow/core:framework",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 61.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables_test_pass.cc

    #include "tensorflow/compiler/mlir/tensorflow/transforms/test_passes.h.inc"
    
    struct FreezeVariableTestPass
        : public impl::FreezeVariablesTestPassBase<FreezeVariableTestPass> {
      void runOnOperation() override {
        TF::test_util::FakeSession session;
        if (tf_saved_model::FreezeVariables(getOperation(), &session).failed())
          signalPassFailure();
      }
    };
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 09:19:38 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/stream_executor/test/test_pluggable_device.cc

    #include "tensorflow/c/experimental/stream_executor/stream_executor_test_util.h"
    
    extern "C" {
    
    void SE_InitPlugin(SE_PlatformRegistrationParams* const params,
                       TF_Status* const status) {
      stream_executor::test_util::PopulateDefaultPlatformRegistrationParams(params);
    }
    
    void TF_InitKernel() {}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 18 04:53:02 UTC 2021
    - 1K bytes
    - Viewed (0)
  6. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/cpp/plugins/CppUnitTestWithoutComponentIntegrationTest.groovy

            """
            file("src/test/cpp/test.cpp") << """
                #include <tests.h>
                int test() {
                    return 0;
                }
            """
            file("src/test/cpp/test_main.cpp") << """
                #include <tests.h>
                int main() {
                    return test();
                }
            """
        }
    
        @Override
        protected void changeTestImplementation() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_sub_applications/test_tutorial001.py

    }
    
    
    def test_openapi_schema_main():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == openapi_schema_main
    
    
    def test_main():
        response = client.get("/app")
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "Hello World from main app"}
    
    
    def test_openapi_schema_sub():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/utils/fake_session.cc

    #include "tensorflow/core/platform/threadpool_options.h"
    #include "tensorflow/core/protobuf/error_codes.pb.h"
    #include "tensorflow/core/public/session_options.h"
    
    namespace mlir {
    namespace TF {
    namespace test_util {
    namespace {
    using ::tensorflow::Status;
    using ::tensorflow::Tensor;
    
    const char kDeviceNamePrefix[] = "/job:worker/replica:0/task:1";
    const char kDeviceName[] = "/job:worker/replica:0/task:1/device:CPU:0";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:47:51 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/stream_executor/stream_executor_test_util.cc

    #include "tensorflow/c/experimental/stream_executor/stream_executor_test_util.h"
    
    #include "tensorflow/c/experimental/stream_executor/stream_executor.h"
    
    namespace stream_executor {
    namespace test_util {
    
    /*** Functions for creating SP_StreamExecutor ***/
    void Allocate(const SP_Device* const device, uint64_t size,
                  int64_t memory_space, SP_DeviceMemoryBase* const mem) {}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 21 20:09:00 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init_test_pass.cc

        : public impl::InitializeVariablesInSessionInitializerPassBase<
              InitializeVariablesInSessionInitializerPass> {
     public:
      void runOnOperation() final {
        static tensorflow::Session* session = new TF::test_util::FakeSession();
        if (failed(tf_saved_model::InitializeVariablesInSessionInitializer(
                getOperation(), session)))
          signalPassFailure();
      }
    
     private:
    };
    }  // anonymous namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 09:19:38 UTC 2022
    - 1.8K bytes
    - Viewed (0)
Back to top