aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/src/test_repo.py
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-18 15:21:12 +0200
committerEgor Tensin <egor@tensin.name>2026-06-18 15:21:12 +0200
commit0eab2fb9fd2006356c12830145fac067f64f7f8a (patch)
tree0af5847aee651c27bfa9f9aa924f5cf1600ed790 /test/src/test_repo.py
parentMerge pull request #9 from egor-tensin/dependabot/docker/alpine-3.24 (diff)
downloadcimple-0eab2fb9fd2006356c12830145fac067f64f7f8a.tar.gz
cimple-0eab2fb9fd2006356c12830145fac067f64f7f8a.zip
workflows/ci: add Python linting
Diffstat (limited to 'test/src/test_repo.py')
-rw-r--r--test/src/test_repo.py19
1 files changed, 12 insertions, 7 deletions
diff --git a/test/src/test_repo.py b/test/src/test_repo.py
index eb717cb..ef45103 100644
--- a/test/src/test_repo.py
+++ b/test/src/test_repo.py
@@ -55,7 +55,10 @@ def _test_repo_internal(env, repo, numof_processes, runs_per_process):
with child_logging_thread() as log_queue:
ctx = mp.get_context('spawn')
args = (log_queue, env.client, runs_per_process, repo)
- processes = [ctx.Process(target=client_runner_process, args=args) for i in range(numof_processes)]
+ processes = [
+ ctx.Process(target=client_runner_process, args=args)
+ for i in range(numof_processes)
+ ]
for proc in processes:
proc.start()
@@ -94,12 +97,14 @@ def test_repo(env, test_repo, numof_clients, runs_per_client):
@pytest.mark.stress
-@my_parametrize('numof_clients,runs_per_client',
- [
- (10, 50),
- (1, 2000),
- (4, 500),
- ])
+@my_parametrize(
+ 'numof_clients,runs_per_client',
+ [
+ (10, 50),
+ (1, 2000),
+ (4, 500),
+ ],
+)
def test_repo_stress(env, stress_test_repo, numof_clients, runs_per_client):
_test_repo_internal(env, stress_test_repo, numof_clients, runs_per_client)