Basic testcase setup
This commit is contained in:
parent
97ed56feb9
commit
8d392f89a6
|
@ -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() == {}
|
Loading…
Reference in New Issue