summaryrefslogtreecommitdiff
path: root/testing/tests/blobs
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tests/blobs')
-rw-r--r--testing/tests/blobs/test_fs_backend.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/tests/blobs/test_fs_backend.py b/testing/tests/blobs/test_fs_backend.py
index 7fce4cfe..a6d7272d 100644
--- a/testing/tests/blobs/test_fs_backend.py
+++ b/testing/tests/blobs/test_fs_backend.py
@@ -106,7 +106,7 @@ class FilesystemBackendTestCase(unittest.TestCase):
@mock.patch('leap.soledad.server._blobs.os.walk')
def test_list_blobs(self, walk_mock):
backend, _ = _blobs.FilesystemBlobsBackend(self.tempdir), None
- walk_mock.return_value = [(_, _, ['blob_0']), (_, _, ['blob_1'])]
+ walk_mock.return_value = [('', _, ['blob_0']), ('', _, ['blob_1'])]
result = json.loads(backend.list_blobs('user', DummyRequest([''])))
self.assertEquals(result, ['blob_0', 'blob_1'])
@@ -114,7 +114,7 @@ class FilesystemBackendTestCase(unittest.TestCase):
@mock.patch('leap.soledad.server._blobs.os.walk')
def test_list_blobs_limited_by_namespace(self, walk_mock):
backend, _ = _blobs.FilesystemBlobsBackend(self.tempdir), None
- walk_mock.return_value = [(_, _, ['blob_0']), (_, _, ['blob_1'])]
+ walk_mock.return_value = [('', _, ['blob_0']), ('', _, ['blob_1'])]
result = json.loads(backend.list_blobs('user', DummyRequest(['']),
namespace='incoming'))
self.assertEquals(result, ['blob_0', 'blob_1'])