From b5475701dd81978eed8cec27384e0b60774307e7 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 10 2020 11:42:25 +0000 Subject: Apply patch 0001-tests-SQL-write-a-readonly-folder.patch patch_name: 0001-tests-SQL-write-a-readonly-folder.patch present_in_specfile: true location_in_specfile: 1 --- diff --git a/tests/api/test_dnf_base.py b/tests/api/test_dnf_base.py index b1cf49f..ca71b75 100644 --- a/tests/api/test_dnf_base.py +++ b/tests/api/test_dnf_base.py @@ -14,6 +14,7 @@ from .common import TOUR_4_4 class DnfBaseApiTest(TestCase): def setUp(self): self.base = dnf.Base(dnf.conf.Conf()) + self.base.conf.persistdir = "/tmp/tests" def tearDown(self): self.base.close() diff --git a/tests/api/test_dnf_db_group.py b/tests/api/test_dnf_db_group.py index 447fd12..e1828cb 100644 --- a/tests/api/test_dnf_db_group.py +++ b/tests/api/test_dnf_db_group.py @@ -12,6 +12,7 @@ from .common import TestCase class DnfRPMTransactionApiTest(TestCase): def setUp(self): self.base = dnf.Base(dnf.conf.Conf()) + self.base.conf.persistdir = "/tmp/tests" self.base.fill_sack(False, False) self.base.resolve() self.rpmTrans = self.base.transaction