[skip ci] Adjust the code alignment (#8953)

Signed-off-by: Binbin Lv <binbin.lv@zilliz.com>
pull/8942/head
binbin 2021-09-30 16:51:31 +08:00 committed by GitHub
parent 576d293936
commit e30acc135f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 7 deletions

View File

@ -319,8 +319,9 @@ class TestAliasOperation(TestcaseBase):
alias_name = cf.gen_unique_str(prefix)
collection_w.create_alias(alias_name)
collection_alias, _ = self.collection_wrap.init_collection(name=alias_name,
check_task=CheckTasks.check_collection_property,
check_items={exp_name: alias_name, exp_schema: default_schema})
check_task=CheckTasks.check_collection_property,
check_items={exp_name: alias_name,
exp_schema: default_schema})
res, _ = self.utility_wrap.has_collection(alias_name)
assert res == True
@ -344,8 +345,9 @@ class TestAliasOperation(TestcaseBase):
alias_name = cf.gen_unique_str(prefix)
collection_w.create_alias(alias_name)
collection_alias, _ = self.collection_wrap.init_collection(name=alias_name,
check_task=CheckTasks.check_collection_property,
check_items={exp_name: alias_name, exp_schema: default_schema})
check_task=CheckTasks.check_collection_property,
check_items={exp_name: alias_name,
exp_schema: default_schema})
assert self.utility_wrap.has_collection(c_name)[0]
self.utility_wrap.drop_collection(alias_name)
assert not self.utility_wrap.has_collection(c_name)[0]
@ -371,8 +373,9 @@ class TestAliasOperation(TestcaseBase):
alias_name = cf.gen_unique_str(prefix)
collection_w.create_alias(alias_name)
collection_alias, _ = self.collection_wrap.init_collection(name=alias_name,
check_task=CheckTasks.check_collection_property,
check_items={exp_name: alias_name, exp_schema: default_schema})
check_task=CheckTasks.check_collection_property,
check_items={exp_name: alias_name,
exp_schema: default_schema})
res, _ = self.utility_wrap.has_partition(alias_name, partition_name)
assert res == True
@ -526,7 +529,8 @@ class TestAliasOperationInvalid(TestcaseBase):
collection_w.create_alias(alias_name)
collection_alias, _ = self.collection_wrap.init_collection(name=alias_name,
check_task=CheckTasks.check_collection_property,
check_items={exp_name: alias_name, exp_schema: default_schema})
check_items={exp_name: alias_name,
exp_schema: default_schema})
with pytest.raises(Exception):
collection_alias.drop()