From: Michael Tremer Date: Tue, 28 Jan 2025 11:05:07 +0000 (+0000) Subject: tests: Fix running Python tests X-Git-Tag: 0.9.30~326 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf9b06d017d9beb35b63ee4c220c6aa3117b4dd8;p=pakfire.git tests: Fix running Python tests Signed-off-by: Michael Tremer --- 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): """