-
-
Notifications
You must be signed in to change notification settings - Fork 13
Get coverage to 100% #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #61 +/- ##
===========================================
+ Coverage 97.63% 100.00% +2.36%
===========================================
Files 2 2
Lines 127 127
Branches 31 31
===========================================
+ Hits 124 127 +3
+ Misses 1 0 -1
+ Partials 2 0 -2
|
This is needed to get to 100% coverage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of nits otherwise LGTM
tests/test_unasync.py
Outdated
|
||
|
||
def test_makedirs(monkeypatch): | ||
import errno |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move import to the top of file
tests/test_unasync.py
Outdated
@@ -136,3 +138,15 @@ def test_project_structure_after_customized_build_py_packages(tmpdir): | |||
|
|||
with open(os.path.join(unasynced_dir_path, "tests/test_conn.py")) as f: | |||
assert "import hip\n" in f.read() | |||
|
|||
|
|||
def test_makedirs(monkeypatch): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test_makedirs_existok
to match function under test
In my experience, 100% coverage is worth it, as it's easy to see when a pull request reduces it.