Skip to content

Commit 64a9654

Browse files
committed
Replay added lines from example PR
1 parent 83e19e1 commit 64a9654

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

‎.uncover-agent/added.py‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
f = str(int(nbytes))
2+
@pytest.mark.parametrize('nbytes,expected', [
3+
(500, 500),
4+
(1024, '1K'),
5+
(1536, '1K'),
6+
(10240, '10K'),
7+
(102400, '100K'),
8+
(1048576, '1M'),
9+
(1572864, '1.5M'),
10+
(10485760, '10M'),
11+
(1073741824, '1G'),
12+
])
13+
def test_human_size(nbytes, expected):
14+
assert util.human_size(nbytes) == expected
15+

0 commit comments

Comments
 (0)