mirror of
https://github.com/chatmail/core.git
synced 2026-04-05 23:22:11 +03:00
add a little bench file -- "pytest tests/bench_empty.py --durations=10" will tell you how much overhead there is
This commit is contained in:
18
python/tests/bench_test_setup.py
Normal file
18
python/tests/bench_test_setup.py
Normal file
@@ -0,0 +1,18 @@
|
||||
"""
|
||||
run with:
|
||||
|
||||
pytest -vv --durations=10 bench_empty.py
|
||||
|
||||
to see timings of test setups.
|
||||
"""
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
class TestEmpty:
|
||||
def test_prepare_setup_measurings(self, acfactory):
|
||||
acfactory.get_many_online_accounts(5)
|
||||
|
||||
@pytest.mark.parametrize("num", range(0, 5))
|
||||
def test_setup_online_accounts(self, acfactory, num):
|
||||
acfactory.get_many_online_accounts(num)
|
||||
Reference in New Issue
Block a user