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

Fix testing revision for being empty #1423

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

dmach
Copy link
Contributor

@dmach dmach commented Oct 5, 2023

Revision 0 is a valid value, but evaluates as False the same way as None or "". This change threats 0 as a proper revision.

@codecov
Copy link

codecov bot commented Oct 5, 2023

Codecov Report

Attention: 47 lines in your changes are missing coverage. Please review.

Comparison is base (ce72ffb) 30.38% compared to head (386c4e8) 30.40%.
Report is 14 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1423      +/-   ##
==========================================
+ Coverage   30.38%   30.40%   +0.02%     
==========================================
  Files          49       49              
  Lines       17698    17708      +10     
==========================================
+ Hits         5377     5384       +7     
- Misses      12321    12324       +3     
Files Coverage Δ
osc/__init__.py 100.00% <100.00%> (ø)
osc/conf.py 52.67% <50.00%> (ø)
osc/commandline.py 19.08% <9.09%> (+0.01%) ⬆️
osc/core.py 35.24% <55.17%> (+0.03%) ⬆️
osc/build.py 6.56% <11.53%> (+0.17%) ⬆️

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

Revision 0 is a valid value, but conditions evaluate it as False along with None and "".
This change treats 0 as a proper revision.
@dmach dmach merged commit 19d1bab into openSUSE:master Oct 6, 2023
30 of 32 checks passed
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.

None yet

1 participant