mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2025-09-28 06:35:24 +00:00
Tests: Incude filter
This commit is contained in:
@@ -103,9 +103,13 @@ class ResticBackupTests(unittest.TestCase):
|
|||||||
]
|
]
|
||||||
with mock.patch(list_containers_func, fixtures.containers(containers=containers)):
|
with mock.patch(list_containers_func, fixtures.containers(containers=containers)):
|
||||||
cnt = RunningContainers()
|
cnt = RunningContainers()
|
||||||
|
|
||||||
web_service = cnt.get_service('web')
|
web_service = cnt.get_service('web')
|
||||||
self.assertNotEqual(web_service, None, msg="Web service not found")
|
self.assertNotEqual(web_service, None, msg="Web service not found")
|
||||||
|
|
||||||
|
mounts = list(web_service.filter_mounts())
|
||||||
|
self.assertEqual(len(mounts), 1)
|
||||||
|
raise ValueError(mounts)
|
||||||
|
|
||||||
def test_exclude(self):
|
def test_exclude(self):
|
||||||
pass
|
pass
|
||||||
|
Reference in New Issue
Block a user