Skip to content

Make dandi download -i <instance> run in a Dandiset download that Dandiset#383

Merged
yarikoptic merged 1 commit into
masterfrom
gh-153
Feb 15, 2021
Merged

Make dandi download -i <instance> run in a Dandiset download that Dandiset#383
yarikoptic merged 1 commit into
masterfrom
gh-153

Conversation

@jwodder
Copy link
Copy Markdown
Contributor

@jwodder jwodder commented Feb 12, 2021

Closes #153.

Note that the tests for this change must be run with DANDI_DEVEL=1, which also enables test_enormous_upload_breaks_girder. As a result, the new tests are not run under CI.

@jwodder jwodder added the patch Increment the patch version when merged label Feb 12, 2021
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 12, 2021

Codecov Report

Merging #383 (e20cc96) into master (efc76ec) will decrease coverage by 0.36%.
The diff coverage is 29.82%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #383      +/-   ##
==========================================
- Coverage   65.56%   65.20%   -0.37%     
==========================================
  Files          55       55              
  Lines        5652     5707      +55     
==========================================
+ Hits         3706     3721      +15     
- Misses       1946     1986      +40     
Flag Coverage Δ
unittests 65.20% <29.82%> (-0.37%) ⬇️

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

Impacted Files Coverage Δ
dandi/cli/cmd_download.py 66.66% <27.27%> (-30.11%) ⬇️
dandi/cli/tests/test_download.py 63.63% <31.42%> (-36.37%) ⬇️

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 efc76ec...e20cc96. Read the comment docs.

@yarikoptic
Copy link
Copy Markdown
Member

Closes #153.

Note that the tests for this change must be run with DANDI_DEVEL=1, which also enables test_enormous_upload_breaks_girder. As a result, the new tests are not run under CI.

couldn't those specific tests mock patch env just for their own CliRunner invocation?

@jwodder
Copy link
Copy Markdown
Contributor Author

jwodder commented Feb 15, 2021

@yarikoptic No, DANDI_DEVEL needs to be set when the code is loaded in order for the --dandi-instance option to be available.

@yarikoptic
Copy link
Copy Markdown
Member

oh, ok. Thanks for the explanation. Let's proceed then as is

@yarikoptic yarikoptic merged commit 6adbc14 into master Feb 15, 2021
@yarikoptic yarikoptic deleted the gh-153 branch February 15, 2021 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Increment the patch version when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

download: while running within dandiset should take that dandiset as default to download from

2 participants