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

BF(TST): use caplog instead of capfd for testing if we log a warning #534

Merged
merged 1 commit into from
Oct 28, 2021

Conversation

yarikoptic
Copy link
Member

for some reason on my laptop capfd failed to provide desired effect. May be because
I am running pytest with -s ;) will not investigate -- using caplog is the more
kosher way for this purpose, and allows for control of the logging level we would like
to have to ensure that the message is output

for some reason on my laptop capfd failed to provide desired effect. May be because
I am running   pytest with -s  ;)  will not investigate -- using caplog is the more
kosher way for this purpose, and allows for control of the logging level we would like
to have to ensure that the message is output
@yarikoptic yarikoptic requested a review from pvelasco October 28, 2021 19:25
@codecov
Copy link

codecov bot commented Oct 28, 2021

Codecov Report

Merging #534 (144fbfc) into master (8d85f14) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #534   +/-   ##
=======================================
  Coverage   77.63%   77.64%           
=======================================
  Files          41       41           
  Lines        3166     3167    +1     
=======================================
+ Hits         2458     2459    +1     
  Misses        708      708           
Impacted Files Coverage Δ
heudiconv/tests/test_convert.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8d85f14...144fbfc. Read the comment docs.

@yarikoptic
Copy link
Member Author

ok, it is all green and now should be green not only for Travis but also for me -- "win/win", let's proceed

@yarikoptic yarikoptic merged commit 80a6538 into nipy:master Oct 28, 2021
@yarikoptic yarikoptic deleted the bf-warning-test branch October 28, 2021 20:28
@yarikoptic yarikoptic added the tests Add or improve existing tests label Apr 20, 2022
@github-actions
Copy link

🚀 PR was released in v0.11.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released tests Add or improve existing tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant