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

dev(narugo): add index download silent mode #44

Merged
merged 3 commits into from
Sep 21, 2024
Merged

Conversation

narugo1992
Copy link
Contributor

from hbutils.testing import isolated_directory

from hfutils.index import hf_tar_file_download
from test.testings import get_testfile, file_compare

with isolated_directory():
    hf_tar_file_download(
        repo_id='narugo/test_cos5t_tars',
        archive_in_repo='mashu_skins.tar',
        file_in_archive='./愚人节_奥特瑙斯.png',
        local_file='愚人节_奥特瑙斯.png',
        silent=True,  # no tqdm progress bar displayed here
    )
    file_compare(get_testfile('skin_mashu', '愚人节_奥特瑙斯.png'), '愚人节_奥特瑙斯.png')

@narugo1992 narugo1992 added the enhancement New feature or request label Sep 21, 2024
@narugo1992 narugo1992 self-assigned this Sep 21, 2024
Copy link

codecov bot commented Sep 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.90%. Comparing base (b670faf) to head (99ac956).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #44   +/-   ##
=======================================
  Coverage   85.89%   85.90%           
=======================================
  Files          53       53           
  Lines        1673     1674    +1     
=======================================
+ Hits         1437     1438    +1     
  Misses        236      236           
Flag Coverage Δ
unittests 85.90% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@narugo1992 narugo1992 merged commit d4b2376 into main Sep 21, 2024
25 checks passed
@narugo1992 narugo1992 deleted the dev/index_silent branch September 21, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant