Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskerPRC committed Sep 11, 2024
1 parent a180330 commit 381b144
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions infra_ai_service/demo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
def add(x, y):
return x + y


def subtract(x, y):
return x - y


def multiply(x, y):
return x * y


def divide(x, y):
if y == 0:
raise ValueError("Cannot divide by zero!")
return x / y
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ commands =
deps =
coverage
commands =
coverage report --fail-under=70 # 将阈值设置为80%
coverage report --fail-under=80
coverage html

[testenv:format]
Expand Down

0 comments on commit 381b144

Please sign in to comment.