-
Notifications
You must be signed in to change notification settings - Fork 1
/
cov_average.txt
28 lines (22 loc) · 1.28 KB
/
cov_average.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
============================= test session starts ==============================
platform linux -- Python 3.6.6, pytest-5.4.2, py-1.5.2, pluggy-0.13.1
benchmark: 3.2.3 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /home/ptisnovs/src/python/testing-in-python/pytest/average2
plugins: voluptuous-1.0.2, benchmark-3.2.3, cov-2.5.1
collected 1 item
test_average.py F [100%]
=================================== FAILURES ===================================
______________________________ test_average_basic ______________________________
def test_average_basic():
"""Otestování výpočtu průměru."""
result = average([1,2])
> assert result == 1.5
E assert 1.0 == 1.5
test_average.py:9: AssertionError
----------- coverage: platform linux, python 3.6.6-final-0 -----------
Name Stmts Miss Cover
--------------------------------
average.py 2 0 100%
=========================== short test summary info ============================
FAILED test_average.py::test_average_basic - assert 1.0 == 1.5
============================== 1 failed in 0.04s ===============================