From b32a5d01c33c5b8aff37710b12875311dc502f6d Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 12 Jul 2023 00:20:20 +0200 Subject: test: use namedtuple where appropriate --- test/py/conftest.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'test') 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 -- cgit v1.2.3