mirror of
https://github.com/chatmail/core.git
synced 2026-04-05 23:22:11 +03:00
actually enable online account caching. previously it was creating (>100) online test accounts
This commit is contained in:
@@ -8,11 +8,13 @@ to see timings of test setups.
|
||||
|
||||
import pytest
|
||||
|
||||
BENCH_NUM = 3
|
||||
|
||||
|
||||
class TestEmpty:
|
||||
def test_prepare_setup_measurings(self, acfactory):
|
||||
acfactory.get_online_accounts(5)
|
||||
acfactory.get_online_accounts(BENCH_NUM)
|
||||
|
||||
@pytest.mark.parametrize("num", range(0, 5))
|
||||
@pytest.mark.parametrize("num", range(0, BENCH_NUM + 1))
|
||||
def test_setup_online_accounts(self, acfactory, num):
|
||||
acfactory.get_online_accounts(num)
|
||||
|
||||
Reference in New Issue
Block a user