Skip to content

Commit 55b1242

Browse files
authored
Merge branch 'main' into large_commits
2 parents a4d4859 + fed5217 commit 55b1242

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

holonote/tests/benchmark/test_benchmarks.py

+5-7
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,16 @@ def setup_annotator(items, filename=":memory:") -> tuple[Annotator, pd.DataFrame
2626

2727
@pytest.mark.parametrize("items", [10, 100, 1000])
2828
def test_define_annotations(benchmark, items) -> None:
29-
annotator, data = setup_annotator(items)
30-
3129
@benchmark
32-
def bench() -> None:
30+
def bench():
31+
annotator, data = setup_annotator(items)
3332
annotator.define_annotations(data, TIME=("start_time", "end_time"))
3433

3534

3635
@pytest.mark.parametrize("items", [10, 100, 1000])
3736
def test_commit(benchmark, items, tmp_path) -> None:
38-
annotator, data = setup_annotator(items, filename=str(tmp_path / "test.db"))
39-
annotator.define_annotations(data, TIME=("start_time", "end_time"))
40-
4137
@benchmark
42-
def bench() -> None:
38+
def bench():
39+
annotator, data = setup_annotator(items, filename=str(tmp_path / "test.db"))
40+
annotator.define_annotations(data, TIME=("start_time", "end_time"))
4341
annotator.commit()

0 commit comments

Comments
 (0)