From cf9b06d017d9beb35b63ee4c220c6aa3117b4dd8 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 28 Jan 2025 11:05:07 +0000 Subject: [PATCH] tests: Fix running Python tests Signed-off-by: Michael Tremer --- tests/python/tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/python/tests.py b/tests/python/tests.py index 83a9de02..73b2b324 100644 --- a/tests/python/tests.py +++ b/tests/python/tests.py @@ -63,7 +63,9 @@ class TestCase(unittest.TestCase): path = os.environ.get("TEST_STUB_ROOT") with open(config, "r") as f: - return pakfire.Pakfire(ctx=ctx, path=path, conf=f, **kwargs) + config = f.read() + + return pakfire.Pakfire(ctx=ctx, path=path, config=config, **kwargs) def path(self, *args, **kwargs): """ -- 2.47.3