]> git.ipfire.org Git - pakfire.git/commitdiff
tests: Fix running Python tests
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 28 Jan 2025 11:05:07 +0000 (11:05 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 28 Jan 2025 11:05:07 +0000 (11:05 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/python/tests.py

index 83a9de02a4dd360b9a655cf977e291e08c9bafd6..73b2b32469df171be6c2e2d8a2ca3009a33fbb27 100644 (file)
@@ -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):
                """