fix conftest

fix conftest
This commit is contained in:
peng.xu 2019-10-25 14:32:23 +08:00
parent 0a172fc8f6
commit 822a9c960b
2 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ os.makedirs(dirpath, 0o777)
settings.TestingConfig.SQLALCHEMY_DATABASE_URI = 'sqlite:///{}?check_same_thread=False'.format(
filepath)
@pytest.fixture
def app(request):
app = create_app(settings.TestingConfig)

View File

@ -171,7 +171,7 @@ class ServiceHandler(milvus_pb2_grpc.MilvusServiceServicer):
logger.info('HasTable {}'.format(_table_name))
_status, _bool = self._has_table(_table_name,
metadata={'resp_class': milvus_pb2.BoolReply})
metadata={'resp_class': milvus_pb2.BoolReply})
return milvus_pb2.BoolReply(status=status_pb2.Status(
error_code=_status.code, reason=_status.message),