We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42c4451 commit a1d3337Copy full SHA for a1d3337
tests/refactor/test_scenarios.py
@@ -10,14 +10,18 @@
10
@pytest.mark.scenario
11
def test_time_multi_run_create_threshold() -> None:
12
start = time.time()
13
- for i in range(20):
14
- with simvue.Run() as run:
15
- run.init(
16
- f"test run {i}",
17
- tags=["test_benchmarking"],
18
- folder="/simvue_benchmark_testing",
19
- retention_period="1 hour"
20
- )
+ runs: list[simvue.Run] = []
+ for i in range(10):
+ run = simvue.Run()
+ run.init(
+ f"test run {i}",
+ tags=["test_benchmarking"],
+ folder="/simvue_benchmark_testing",
+ retention_period="1 hour"
21
+ )
22
+ runs.append(run)
23
+ for run in runs:
24
+ run.close()
25
end = time.time()
26
client = simvue.Client()
27
with contextlib.suppress(RuntimeError):
0 commit comments