mirror of
https://github.com/chatmail/core.git
synced 2026-04-05 15:02:11 +03:00
21 lines
411 B
Python
21 lines
411 B
Python
"""
|
|
run with:
|
|
|
|
pytest -vv --durations=10 bench_empty.py
|
|
|
|
to see timings of test setups.
|
|
"""
|
|
|
|
import pytest
|
|
|
|
BENCH_NUM = 3
|
|
|
|
|
|
class TestEmpty:
|
|
def test_prepare_setup_measurings(self, acfactory):
|
|
acfactory.get_online_accounts(BENCH_NUM)
|
|
|
|
@pytest.mark.parametrize("num", range(BENCH_NUM + 1))
|
|
def test_setup_online_accounts(self, acfactory, num):
|
|
acfactory.get_online_accounts(num)
|