我想将存储在 Azure blob 存储中的 Excel 文件读取到 python 数据框。我会使用什么方法?
python azure-blob-storage azure-functions azure-blob-trigger
我是 Python 单元测试的新手,我不确定如何创建此函数的单元测试以返回连接?
def connection(self):
connection = mysql.connector.connect(host='localhost',
database='test',
user='user',
password='password',
auth_plugin='mysql_native_password')
return connection
Run Code Online (Sandbox Code Playgroud) python python-unittest mysql-connector-python python-unittest.mock
python ×2