diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-12 00:20:20 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-12 00:20:20 +0200 |
commit | b32a5d01c33c5b8aff37710b12875311dc502f6d (patch) | |
tree | 2b9ebb176f369e30bad5c59ea861d98d05cdb1ee /test/py/conftest.py | |
parent | test: add test for segfaulting CI script (diff) | |
download | cimple-b32a5d01c33c5b8aff37710b12875311dc502f6d.tar.gz cimple-b32a5d01c33c5b8aff37710b12875311dc502f6d.zip |
test: use namedtuple where appropriate
Diffstat (limited to '')
-rw-r--r-- | test/py/conftest.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/py/conftest.py b/test/py/conftest.py index 54ef444..9bacab4 100644 --- a/test/py/conftest.py +++ b/test/py/conftest.py @@ -3,6 +3,7 @@ # For details, see https://github.com/egor-tensin/cimple. # Distributed under the MIT License. +from collections import namedtuple import logging import os @@ -220,12 +221,7 @@ def stress_test_repo(repo_path, paths, request): return _make_repo(repo_path, paths, request.param) -class Env: - def __init__(self, server, workers, client, db): - self.server = server - self.workers = workers - self.client = client - self.db = db +Env = namedtuple('Env', ['server', 'workers', 'client', 'db']) @fixture |