X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/44c2e41fec0beeab4544103d0a4afb9a775ed706..62d56bce0d714cc2df2ab5e7f1005dc3d76f783b:/sdk/python/tests/test_arvfile.py diff --git a/sdk/python/tests/test_arvfile.py b/sdk/python/tests/test_arvfile.py old mode 100755 new mode 100644 index da8bf684e8..6b3562602a --- a/sdk/python/tests/test_arvfile.py +++ b/sdk/python/tests/test_arvfile.py @@ -28,7 +28,7 @@ class ArvadosFileWriterTestCase(unittest.TestCase): def get_from_cache(self, locator): self.requests.append(locator) return self.blocks.get(locator) - def put(self, data, num_retries=None): + def put(self, data, num_retries=None, copies=None): pdh = tutil.str_keep_locator(data) self.blocks[pdh] = str(data) return pdh @@ -38,9 +38,10 @@ class ArvadosFileWriterTestCase(unittest.TestCase): self.body = b self.response = r self._schema = ArvadosFileWriterTestCase.MockApi.MockSchema() + self._rootDesc = {} class MockSchema(object): def __init__(self): - self.schemas = {'Collection': {'properties': {'replication_desired': 2}}} + self.schemas = {'Collection': {'properties': {'replication_desired': {'type':'integer'}}}} class MockCollections(object): def __init__(self, b, r): self.body = b