Code Duplication    Length = 11-12 lines in 2 locations

tests/test_stats.py 2 locations

@@ 19-30 (lines=12) @@
16
    assert stats.ops == 0.023809523809523808
17
18
19
def test_2():
20
    stats = Stats()
21
    stats.update(17.)
22
    stats.update(19.)
23
    stats.update(24.)
24
    assert stats.mean == 20.
25
    assert stats.min == 17.
26
    assert stats.max == 24.
27
    assert stats.stddev == 3.605551275463989
28
    assert stats.rounds == 3
29
    assert stats.total == 60.
30
    assert stats.ops == 0.05
31
32
33
def test_single_item():
@@ 6-16 (lines=11) @@
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
    assert stats.ops == 0.023809523809523808
17
18
19
def test_2():