From 1e5b3603cc96b7a0e955444218958d382111fdd3 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Tue, 28 Nov 2023 19:19:43 +0200 Subject: [PATCH] bench: test fetch instead of pull `pull` is literally `fetch` + `checkout` and our main interest there is downloading, so let's just test fetch instead. --- dvc/testing/benchmarks/cli/commands/test_fetch.py | 3 +++ dvc/testing/benchmarks/cli/commands/test_pull.py | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 dvc/testing/benchmarks/cli/commands/test_fetch.py delete mode 100644 dvc/testing/benchmarks/cli/commands/test_pull.py diff --git a/dvc/testing/benchmarks/cli/commands/test_fetch.py b/dvc/testing/benchmarks/cli/commands/test_fetch.py new file mode 100644 index 000000000..954f74707 --- /dev/null +++ b/dvc/testing/benchmarks/cli/commands/test_fetch.py @@ -0,0 +1,3 @@ +def test_fetch(bench_dvc, tmp_dir, dvc, make_dataset, remote): + make_dataset(cache=False, dvcfile=True, files=False, remote=True) + bench_dvc("fetch") diff --git a/dvc/testing/benchmarks/cli/commands/test_pull.py b/dvc/testing/benchmarks/cli/commands/test_pull.py deleted file mode 100644 index 71ba264d3..000000000 --- a/dvc/testing/benchmarks/cli/commands/test_pull.py +++ /dev/null @@ -1,3 +0,0 @@ -def test_pull(bench_dvc, tmp_dir, dvc, make_dataset, remote): - make_dataset(cache=False, dvcfile=True, files=False, remote=True) - bench_dvc("pull")