Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 251 for testChain (0.13 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. src/runtime/debug/stack_test.go

    package debug_test
    
    import (
    	"bytes"
    	"fmt"
    	"internal/testenv"
    	"log"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"runtime"
    	"runtime/debug"
    	. "runtime/debug"
    	"strings"
    	"testing"
    )
    
    func TestMain(m *testing.M) {
    	switch os.Getenv("GO_RUNTIME_DEBUG_TEST_ENTRYPOINT") {
    	case "dumpgoroot":
    		fmt.Println(runtime.GOROOT())
    		os.Exit(0)
    
    	case "setcrashoutput":
    		f, err := os.Create(os.Getenv("CRASHOUTPUT"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:19:04 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/phases/upgrade/main_test.go

    limitations under the License.
    */
    
    package upgrade
    
    import (
    	"testing"
    
    	pkiutiltesting "k8s.io/kubernetes/cmd/kubeadm/app/util/pkiutil/testing"
    )
    
    func TestMain(m *testing.M) {
    	pkiutiltesting.RunWithPrivateKeyFixtureDirectory(m)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jul 04 08:41:27 UTC 2021
    - 770 bytes
    - Viewed (0)
  4. src/cmd/pprof/pprof_test.go

    package main
    
    import (
    	"internal/testenv"
    	"os"
    	"path/filepath"
    	"runtime"
    	"strings"
    	"sync"
    	"testing"
    )
    
    // TestMain executes the test binary as the pprof command if
    // GO_PPROFTEST_IS_PPROF is set, and runs the tests otherwise.
    func TestMain(m *testing.M) {
    	if os.Getenv("GO_PPROFTEST_IS_PPROF") != "" {
    		main()
    		os.Exit(0)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:59 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  5. 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)
  6. src/go/types/main_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package types_test
    
    import (
    	"go/build"
    	"internal/testenv"
    	"os"
    	"testing"
    )
    
    func TestMain(m *testing.M) {
    	build.Default.GOROOT = testenv.GOROOT(nil)
    	os.Exit(m.Run())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 464 bytes
    - Viewed (0)
  7. pilot/pkg/bootstrap/leak_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package bootstrap
    
    import (
    	"testing"
    
    	"istio.io/istio/tests/util/leak"
    )
    
    func TestMain(m *testing.M) {
    	// CheckMain asserts that no goroutines are leaked after a test package exits.
    	leak.CheckMain(m)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 14 19:26:09 UTC 2021
    - 794 bytes
    - Viewed (0)
  8. pilot/pkg/status/distribution/leak_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package distribution
    
    import (
    	"testing"
    
    	"istio.io/istio/tests/util/leak"
    )
    
    func TestMain(m *testing.M) {
    	// CheckMain asserts that no goroutines are leaked after a test package exits.
    	leak.CheckMain(m)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 17 12:28:05 UTC 2021
    - 797 bytes
    - Viewed (0)
  9. pilot/pkg/networking/core/route/leak_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package route
    
    import (
    	"testing"
    
    	"istio.io/istio/tests/util/leak"
    )
    
    func TestMain(m *testing.M) {
    	// CheckMain asserts that no goroutines are leaked after a test package exits.
    	leak.CheckMain(m)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 790 bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/aggregate/leak_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package aggregate
    
    import (
    	"testing"
    
    	"istio.io/istio/tests/util/leak"
    )
    
    func TestMain(m *testing.M) {
    	// CheckMain asserts that no goroutines are leaked after a test package exits.
    	leak.CheckMain(m)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 794 bytes
    - Viewed (0)
Back to top