1 Star 0 Fork 1

gx/Clean-Code-in-Python

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
mutation_testing_1.py 341 Bytes
一键复制 编辑 原始数据 按行查看 历史
gaurav-packt 提交于 2018-08-28 12:32 +08:00 . Code files added
"""Clean Code in Python - Chapter 8: Unit Testing & Refactoring
> Mutation Testing
"""
from mrstatus import MergeRequestStatus as Status
def evaluate_merge_request(upvote_count, downvotes_count):
if downvotes_count > 0:
return Status.REJECTED
if upvote_count >= 2:
return Status.APPROVED
return Status.PENDING
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Simple_r/Clean-Code-in-Python.git
git@gitee.com:Simple_r/Clean-Code-in-Python.git
Simple_r
Clean-Code-in-Python
Clean-Code-in-Python
master

搜索帮助