小编dra*_*ams的帖子

使用 python 读取 azure blob

我想将存储在 Azure blob 存储中的 Excel 文件读取到 python 数据框。我会使用什么方法?

python azure-blob-storage azure-functions azure-blob-trigger

5
推荐指数
1
解决办法
8411
查看次数

Python 中的连接单元测试

我是 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

2
推荐指数
1
解决办法
8444
查看次数