- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 228 for mkdtemp (0.36 sec)
-
tests/test_tutorial/test_sql_databases/test_sql_databases_middleware_py39.py
from fastapi.testclient import TestClient from ...utils import needs_py39, needs_pydanticv1 @pytest.fixture(scope="module") def client(tmp_path_factory: pytest.TempPathFactory): tmp_path = tmp_path_factory.mktemp("data") cwd = os.getcwd() os.chdir(tmp_path) test_db = Path("./sql_app.db") if test_db.is_file(): # pragma: nocover test_db.unlink()
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 16.5K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_sql_databases_py310.py
from ...utils import needs_py310, needs_pydanticv1 @pytest.fixture(scope="module", name="client") def get_client(tmp_path_factory: pytest.TempPathFactory): tmp_path = tmp_path_factory.mktemp("data") cwd = os.getcwd() os.chdir(tmp_path) test_db = Path("./sql_app.db") if test_db.is_file(): # pragma: nocover test_db.unlink()
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 16.5K bytes - Viewed (0) -
cmd/kubeadm/app/util/config/cluster_test.go
0FZ9mnm2qN6PFXvxFgLHaVg3vIUBnCfUUrcPC4OxTSO+mZRe1k8wyAiUj/JM+fYo G+2/lm8TaVjoU7Fi5Ka5G5HY2GLaR7P+IxYcrMHCl62Y7Rqcrnc= -----END CERTIFICATE----- `), } func TestGetNodeNameFromKubeletConfig(t *testing.T) { tmpdir, err := os.MkdirTemp("", "") if err != nil { t.Fatalf("Couldn't create tmpdir") } defer os.RemoveAll(tmpdir) var tests = []struct { name string kubeconfigContent []byte pemContent []byte
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 14 13:07:56 UTC 2024 - 26.7K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_sql_databases.py
from fastapi.testclient import TestClient from ...utils import needs_pydanticv1 @pytest.fixture(scope="module") def client(tmp_path_factory: pytest.TempPathFactory): tmp_path = tmp_path_factory.mktemp("data") cwd = os.getcwd() os.chdir(tmp_path) test_db = Path("./sql_app.db") if test_db.is_file(): # pragma: nocover test_db.unlink()
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 16.1K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_sql_databases_middleware_py310.py
from fastapi.testclient import TestClient from ...utils import needs_py310, needs_pydanticv1 @pytest.fixture(scope="module") def client(tmp_path_factory: pytest.TempPathFactory): tmp_path = tmp_path_factory.mktemp("data") cwd = os.getcwd() os.chdir(tmp_path) test_db = Path("./sql_app.db") if test_db.is_file(): # pragma: nocover test_db.unlink()
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 16.5K bytes - Viewed (0) -
src/cmd/gofmt/gofmt_test.go
if err != nil { t.Error(err) } if bytes.Contains(data, []byte("\r")) { t.Errorf("%s contains CR's", golden) } } func TestBackupFile(t *testing.T) { dir, err := os.MkdirTemp("", "gofmt_test") if err != nil { t.Fatal(err) } defer os.RemoveAll(dir) name, err := backupFile(filepath.Join(dir, "foo.go"), []byte(" package main"), 0644) if err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 10 19:22:49 UTC 2022 - 4.3K bytes - Viewed (0) -
pkg/test/framework/testcontext.go
if c == nil || c.Environment() == nil { return nil } return c.Environment().AllClusters() } func (c *testContext) CreateDirectory(name string) (string, error) { dir, err := os.MkdirTemp(c.workDir, name) if err != nil { scopes.Framework.Errorf("Error creating dir: runID='%v', prefix='%s', workDir='%v', err='%v'", c.suite.settings.RunID, name, c.workDir, err) } else {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 11.4K bytes - Viewed (0) -
cluster/images/etcd/migrate/data_dir_test.go
if err != nil { t.Fatal(err) } if isEmpty { t.Errorf("Expected non-empty backup directory to exist after Backup()") } } func newTestPath(t *testing.T) string { path, err := os.MkdirTemp("", "etcd-migrate-test-") if err != nil { t.Fatalf("Failed to create tmp dir for test: %v", err) } err = os.Chmod(path, 0777) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 28 07:33:23 UTC 2022 - 4.5K bytes - Viewed (0) -
src/syscall/exec_pdeathsig_test.go
// after we drop privileges. // // TODO(bcmills): Why do we believe that another users will be able to // execute a binary in this directory? (It could be mounted noexec.) tempDir, err := os.MkdirTemp("", "TestDeathSignal") if err != nil { t.Fatalf("cannot create temporary directory: %v", err) } defer os.RemoveAll(tempDir) os.Chmod(tempDir, 0755)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 21:23:17 UTC 2023 - 4.5K bytes - Viewed (0) -
cluster/gce/gci/configure_helper_test.go
c := &ManifestTestCase{ t: t, manifest: manifest, auxManifests: auxManifests, manifestFuncName: funcName, } d, err := os.MkdirTemp("", "configure-helper-test") if err != nil { c.t.Fatalf("Failed to create temp directory: %v", err) } c.kubeHome = d c.manifestSources = filepath.Join(c.kubeHome, "kube-manifests", "kubernetes", "gci-trusty")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Oct 30 06:23:50 UTC 2021 - 4.8K bytes - Viewed (0)