Code Duplication    Length = 10-11 lines in 2 locations

tests/test_stats.py 2 locations

@@ 18-28 (lines=11) @@
15
    assert stats.total == 210.
16
17
18
def test_2():
19
    stats = Stats()
20
    stats.update(17.)
21
    stats.update(19.)
22
    stats.update(24.)
23
    assert stats.mean == 20.
24
    assert stats.min == 17.
25
    assert stats.max == 24.
26
    assert stats.stddev == 3.605551275463989
27
    assert stats.rounds == 3
28
    assert stats.total == 60.
29
30
31
def test_single_item():
@@ 6-15 (lines=10) @@
3
from pytest_benchmark.stats import Stats
4
5
6
def test_1():
7
    stats = Stats()
8
    for i in 4., 36., 45., 50., 75.:
9
        stats.update(i)
10
    assert stats.mean == 42.
11
    assert stats.min == 4.
12
    assert stats.max == 75.
13
    assert stats.stddev == 25.700194551792794
14
    assert stats.rounds == 5
15
    assert stats.total == 210.
16
17
18
def test_2():