From d5e0a3894b147604f9c0279280a265350860cd9d Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Fri, 3 Feb 2023 19:09:24 +0000 Subject: [PATCH] test(backup): make a testfile to backup --- tests/test_graphql/test_backup.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_graphql/test_backup.py b/tests/test_graphql/test_backup.py index abd05c2..264a9bf 100644 --- a/tests/test_graphql/test_backup.py +++ b/tests/test_graphql/test_backup.py @@ -1,4 +1,5 @@ import pytest +import os.path as path from selfprivacy_api.services.test_service import DummyService @@ -9,8 +10,14 @@ from selfprivacy_api.backup.providers.backblaze import Backblaze from selfprivacy_api.graphql.queries.providers import BackupProvider +TESTFILE_BODY = "testytest!" + + @pytest.fixture() def test_service(tmpdir): + testile_path = path.join(tmpdir, "testfile.txt") + with open(testile_path, "w") as file: + file.write(TESTFILE_BODY) return DummyService(tmpdir)