summaryrefslogtreecommitdiff
path: root/tests/blobs/test_fs_backend.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2017-12-08 22:36:24 -0200
committerdrebs <drebs@leap.se>2017-12-13 13:49:27 -0200
commit7712e6b19def97cf0266146863d11d5a29767a6a (patch)
treef3eb522fa385b67f3929ce85cb3bb75b0ff0ce2e /tests/blobs/test_fs_backend.py
parent7aa8e9496e74f8f1265bf008ae412a3f733ea2b4 (diff)
[refactor] make get_total_storage() return a deferred
Diffstat (limited to 'tests/blobs/test_fs_backend.py')
-rw-r--r--tests/blobs/test_fs_backend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/blobs/test_fs_backend.py b/tests/blobs/test_fs_backend.py
index 727ffe92..6c5665e8 100644
--- a/tests/blobs/test_fs_backend.py
+++ b/tests/blobs/test_fs_backend.py
@@ -96,7 +96,7 @@ class FilesystemBackendTestCase(unittest.TestCase):
def test_write_cannot_exceed_quota(self, isfile):
isfile.return_value = False
backend = _blobs.FilesystemBlobsBackend(blobs_path=self.tempdir)
- backend.get_total_storage = lambda x: 100
+ backend.get_total_storage = lambda x: defer.succeed(100)
backend.quota = 90
with pytest.raises(_blobs.QuotaExceeded):
fd = Mock()