Skip to content

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

Merged
merged 3 commits into from
May 4, 2020
Merged

Get coverage to 100% #61

merged 3 commits into from
May 4, 2020

Conversation

pquentin
Copy link
Member

@pquentin pquentin commented May 2, 2020

In my experience, 100% coverage is worth it, as it's easy to see when a pull request reduces it.

@codecov
Copy link

codecov bot commented May 2, 2020

Codecov Report

Merging #61 into master will increase coverage by 2.36%.
The diff coverage is n/a.

@@             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     
Impacted Files Coverage Δ
src/unasync/__init__.py 100.00% <0.00%> (+2.38%) ⬆️

@pquentin pquentin marked this pull request as draft May 2, 2020 20:00
@pquentin pquentin changed the title Test _makedirs_existok behavior on unexpected OSError Get coverage to 100% May 2, 2020
@pquentin pquentin marked this pull request as ready for review May 2, 2020 20:07
Copy link
Contributor

@sethmlarson sethmlarson left a 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



def test_makedirs(monkeypatch):
import errno
Copy link
Contributor

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

@@ -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):
Copy link
Contributor

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

@pquentin pquentin merged commit b314d89 into python-trio:master May 4, 2020
@pquentin pquentin deleted the coverage branch May 4, 2020 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants