Skip to content

Commit

Permalink
Increased coverage on util module
Browse files Browse the repository at this point in the history
    gilt/util.py          29      0   100%
  • Loading branch information
retr0h committed Nov 17, 2016
1 parent eb4ad0c commit 011c033
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[report]
fail_under =
94
95
6 changes: 6 additions & 0 deletions test/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

import os

import pytest
import sh

from gilt import util
Expand Down Expand Up @@ -97,3 +98,8 @@ def test_copy_dir(temp_dir):
util.copy(src_dir, d)

assert os.path.exists(d)


def test_copy_raises(temp_dir):
with pytest.raises(OSError):
util.copy('invalid-src', 'invalid-dst')

0 comments on commit 011c033

Please sign in to comment.