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

支持服务商支付分 #2653

Merged
merged 1 commit into from
May 22, 2022

Conversation

hallkk
Copy link

@hallkk hallkk commented May 19, 2022

@binarywang
Copy link
Owner

感谢PR,如果能有些单元测试代码那就更好了

@binarywang binarywang added this to the 4.3.4 milestone May 20, 2022
@hallkk
Copy link
Author

hallkk commented May 20, 2022

感谢PR,如果能有些单元测试代码那就更好了

这种业务接口调用,应当如何添加单元测试?
尝试写,发觉很难;如果去mock返回,也失去了真实性,无法达到测试的效果

@binarywang
Copy link
Owner

mock返回即可,只要mock的数据格式跟实际返回一致,使得代码正确运行就可以

@binarywang binarywang merged commit 529f786 into binarywang:develop May 22, 2022
@hallkk hallkk deleted the feature_partner_payscore branch May 27, 2022 01:22
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

Successfully merging this pull request may close these issues.

2 participants