Skip to content
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

TST/DOC: add tests and use new docstring style for class GitRepo #397

Merged
merged 12 commits into from
Sep 21, 2023

Conversation

TobiasKadelka
Copy link
Collaborator

@TobiasKadelka TobiasKadelka commented Jul 28, 2023

This PR adds tests and docstrings for the GitRepo class, in parallel to the changes for OnyoRepo during #394.

Changes:

@codecov
Copy link

codecov bot commented Jul 28, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.63% 🎉

Comparison is base (ff65fff) 94.79% compared to head (63da652) 95.43%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #397      +/-   ##
==========================================
+ Coverage   94.79%   95.43%   +0.63%     
==========================================
  Files          51       52       +1     
  Lines        4037     4208     +171     
  Branches      953      960       +7     
==========================================
+ Hits         3827     4016     +189     
+ Misses        117      103      -14     
+ Partials       93       89       -4     
Files Changed Coverage Δ
onyo/lib/onyo.py 90.97% <ø> (ø)
onyo/lib/git.py 90.58% <100.00%> (+10.58%) ⬆️
onyo/lib/tests/test_git.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@TobiasKadelka TobiasKadelka force-pushed the git-test branch 2 times, most recently from 2974462 to 5bc5f75 Compare August 7, 2023 08:29
Copy link
Collaborator

@bpoldrack bpoldrack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @TobiasKadelka. Better :)

Left some more comments. And one more general comment:
Switching to temp paths being delivered to the test functions is better. But: Now you get that path and every single test function starts with the exact same thing: git init on that path. I would have imagined to "simply" have a fixture, that delivers an initialized git repo (and more specific types of repos could built on it eventually).

I updated and added docstrings with the new docstring style,
and I normalized quotes, punctuation and line breaks.
@bpoldrack
Copy link
Collaborator

Thanks, @TobiasKadelka !

@bpoldrack bpoldrack merged commit 4f80fd8 into psyinfra:main Sep 21, 2023
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.

2 participants