mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2026-11-17 02:25:41 +00:00
Basic testcase setup
This commit is contained in:
1 parent
97ed56feb9
commit
8d392f89a6
2 files changed
+19
No files matched your search
@@ -0,0 +1,4 @@
|
||||
[pytest]
|
||||
testpaths = tests
|
||||
python_files=test*.py
|
||||
addopts = -v --verbose
|
||||
@@ -0,0 +1,15 @@
|
||||
import unittest
|
||||
from unittest import mock
|
||||
|
||||
from restic_volume_backup import utils
|
||||
|
||||
|
||||
def list_containers():
|
||||
return {}
|
||||
|
||||
|
||||
@mock.patch('restic_volume_backup.utils.list_containers', list_containers)
|
||||
class ResticBackupTests(unittest.TestCase):
|
||||
|
||||
def test_stuff(self):
|
||||
assert utils.list_containers() == {}
|
||||
Reference in new issue
Block a user