Skip to content

Commit

Permalink
add random seed to benchmark stories
Browse files Browse the repository at this point in the history
  • Loading branch information
dberenbaum authored and daavoo committed May 10, 2023
1 parent 195e67c commit 06d8e3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dvc/testing/benchmarks/cli/stories/test_modify_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

@pytest.mark.skipif(sys.version_info < (3, 10), reason="requires 3.10 glob.glob")
def test_partial_add(bench_dvc, tmp_dir, dvc, dataset, remote):
random.seed(4231)
# Move some files to create a partial dataset
os.makedirs("partial-copy")
for f in glob.glob("*", root_dir=dataset, recursive=True): # type: ignore[call-arg]
Expand All @@ -36,6 +37,7 @@ def test_partial_add(bench_dvc, tmp_dir, dvc, dataset, remote):

@pytest.mark.skipif(sys.version_info < (3, 10), reason="requires 3.10 glob.glob")
def test_partial_remove(bench_dvc, tmp_dir, dvc, dataset, remote):
random.seed(5232)
# Add/push full dataset
dvc.add(str(dataset))
dvc.push()
Expand Down

0 comments on commit 06d8e3c

Please sign in to comment.