From 29c4b74a86d013f3cad1d8e6e23ae030a4efb306 Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Mon, 20 Feb 2023 10:35:51 +0000 Subject: [PATCH] test(backups): test repo init --- tests/test_graphql/test_backup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_graphql/test_backup.py b/tests/test_graphql/test_backup.py index bb3b624..5e702b3 100644 --- a/tests/test_graphql/test_backup.py +++ b/tests/test_graphql/test_backup.py @@ -16,7 +16,7 @@ REPO_NAME = "test_backup" @pytest.fixture() -def test_service(tmpdir): +def test_service(tmpdir, backups): testile_path = path.join(tmpdir, "testfile.txt") with open(testile_path, "w") as file: file.write(TESTFILE_BODY) @@ -25,7 +25,9 @@ def test_service(tmpdir): class TestDummyService(DummyService, location=tmpdir): pass - return TestDummyService() + service = TestDummyService() + backups.init_repo(service) + return service @pytest.fixture()