mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-28 06:51:28 +00:00
test(backup): make a testfile to backup
This commit is contained in:
parent
b6650b52c3
commit
d5e0a3894b
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue