File tree
Expand file treeCollapse file tree2 files changed
+4
-0
lines changed Expand file treeCollapse file tree2 files changed
+4
-0
lines changed Original file line number | Diff line number | Diff line change |
---|
|
12 | 12 | python-version: '3.10'
|
13 | 13 | - name: Install dependencies
|
14 | 14 | run: pip install -r requirements.txt
|
| 15 | + |
15 | 16 | - name: Run tests and collect coverage for calculator
|
16 | 17 | run: pytest --cov
|
17 | 18 | - name: Upload coverage to Codecov
|
|
Original file line number | Diff line number | Diff line change |
---|
|
3 | 3 |
|
4 | 4 | def test_add():
|
5 | 5 | assert SimpleCalculator.add(1, 2) == 3.0
|
| 6 | + |
| 7 | +def test_subtract(): |
| 8 | +assert SimpleCalculator.subtract(1, 2) == -1.0 |
You can’t perform that action at this time.
0 commit comments