Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python mock 模拟 api 返回数据 #41

Open
liujuanjuan1984 opened this issue Apr 13, 2022 · 1 comment
Open

python mock 模拟 api 返回数据 #41

liujuanjuan1984 opened this issue Apr 13, 2022 · 1 comment

Comments

@liujuanjuan1984
Copy link
Owner

No description provided.

@liujuanjuan1984
Copy link
Owner Author

quorum 是外部依赖,你可以尝试跑一个实例进行测试,但是一般来讲像这种sdk项目,会默认 quorum 是没有问题的,只要按照 API 文档的说明请求就可以

测试的话,一般会有专门的库,来模拟一些 API 返回的数据

你可以搜一下关键词 python mock

然后测试就就是你 handler 里面的一些功能就好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant