Skip to content

Commit 9338066

Browse files
fix: add a flaky test
1 parent 1bf5553 commit 9338066

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/test_calculator.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
import random
12
from .calculator import Calculator
23

34

5+
def test_flaky():
6+
assert random.random() <= 0.8
7+
48
def test_add():
59
assert Calculator.add(1, 2) == 3.0
610
assert Calculator.add(1.0, 2.0) == 3.0

0 commit comments

Comments
 (0)