Fix tox test on container syncer.
This commit is contained in:
@@ -71,6 +71,10 @@ class TestAccountSyncMetadata(TestAccountBase):
|
|||||||
class Containers(object):
|
class Containers(object):
|
||||||
def sync(*args, **kwargs):
|
def sync(*args, **kwargs):
|
||||||
sync_container_called.append(args)
|
sync_container_called.append(args)
|
||||||
|
|
||||||
|
def delete_container(*args, **kwargs):
|
||||||
|
pass
|
||||||
|
|
||||||
self.accounts_cls.container_cls = Containers()
|
self.accounts_cls.container_cls = Containers()
|
||||||
self.accounts_cls.sync_account("http://orig", "otoken",
|
self.accounts_cls.sync_account("http://orig", "otoken",
|
||||||
"http://dest", "dtoken")
|
"http://dest", "dtoken")
|
||||||
@@ -248,6 +252,9 @@ class TestAccountSync(TestAccountBase):
|
|||||||
class Containers(object):
|
class Containers(object):
|
||||||
def sync(*args, **kwargs):
|
def sync(*args, **kwargs):
|
||||||
ret.append(args)
|
ret.append(args)
|
||||||
|
|
||||||
|
def delete_container(*args, **kwargs):
|
||||||
|
pass
|
||||||
self.accounts_cls.container_cls = Containers()
|
self.accounts_cls.container_cls = Containers()
|
||||||
|
|
||||||
tenant_name = fakes.TENANTS_LIST.keys()[0]
|
tenant_name = fakes.TENANTS_LIST.keys()[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user