test(backups): test repo init

pull/35/head
Houkime 2023-02-20 10:35:51 +00:00 committed by Inex Code
parent 3f30469532
commit 29c4b74a86
1 changed files with 4 additions and 2 deletions

View File

@ -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()