Skip to content

Commit

Permalink
Merge pull request #3 from nora-codecov/part2
Browse files Browse the repository at this point in the history
add test
  • Loading branch information
nora-codecov committed Sep 12, 2024
2 parents 2fb1dcc + 901947e commit 6f1ce1d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# oidc-test
used pyenv virtualenv 3.12.2 temp
# OIDC Test
[![codecov](https://codecov.io/github/nora-codecov/oidc-test/branch/main/graph/badge.svg?token=3BKZLJABVK)](https://codecov.io/github/nora-codecov/oidc-test)

Running on python 3.12.2

No apps, no tokens, no worries :sunglasses:
3 changes: 3 additions & 0 deletions api/calculator/test_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ def test_divide():
assert Calculator.divide(1.0, 2.0) == 0.5
assert Calculator.divide(0, 2.0) == 0
assert Calculator.divide(-4, 2.0) == -2.0

def test_divide_by_0():
assert Calculator.divide(2.0, 0) == 'Cannot divide by 0'

0 comments on commit 6f1ce1d

Please sign in to comment.