Skip to content

Conversation

@candleindark
Copy link
Member

See individual commit message for details.

@candleindark candleindark added the tests Add or improve existing tests label Dec 15, 2025
@codecov
Copy link

codecov bot commented Dec 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.07%. Comparing base (a1043bf) to head (f92fda7).
⚠️ Report is 1 commits behind head on remove-hardcode.

Additional details and impacted files
@@               Coverage Diff                @@
##           remove-hardcode    #1771   +/-   ##
================================================
  Coverage            75.07%   75.07%           
================================================
  Files                   84       84           
  Lines                11910    11910           
================================================
  Hits                  8942     8942           
  Misses                2968     2968           
Flag Coverage Δ
unittests 75.07% <ø> (ø)

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Configuer CI to test against a vendor specific DANDI API
other than the default instance of DANDI API
@candleindark candleindark force-pushed the test-against-vendored-dandiapi branch from 5041803 to f92fda7 Compare December 15, 2025 19:06
@candleindark candleindark changed the base branch from master to remove-hardcode December 15, 2025 19:08
@yarikoptic yarikoptic merged commit 997761c into remove-hardcode Dec 15, 2025
40 of 41 checks passed
@yarikoptic yarikoptic deleted the test-against-vendored-dandiapi branch December 15, 2025 20:42
yarikoptic pushed a commit that referenced this pull request Dec 15, 2025
* test: update `test_update_dandiset_from_doi`

So that the checks of `id` and `identifier`
in metadata allow different instance names

* test: update `test_download_dandiset_yaml`

So that the check of `id` in metadata allows
different instance names

* feat: remove block that fetch dandiset identifier that is irrelevant

See #1760 (comment)
for details

* doc: replace hardcoded "DANDI:" comment

To reflect that instance names are no longer
restricted to "DANDI"

* fix: strip instance name prefix from dandiset ID in `update_dandiset_from_doi`

This is only a replacement for the code that strips
the "DANDI:" prefix. The replacement works for dandisets
of different DANDI instances. However, `update_dandiset_from_doi`
is far from robust. This replacement doesn't fix underlying
weakness stems from assumptions. Further improvements of
`update_dandiset_from_doi` are needed.

* Reimplement `dandi.utils.is_url` (#1767)

* feat: reimplement `dandi.utils.is_url`

So that it can determine whether a given
string is a standard HTTP, HTTPS, FTP URL,
or DANDI URL more precisely. Additionally, this
solution supports DANDI URL of different DANDI
archive instances.

* test: Add tests for `dandi.utils.is_url`

* ci: test against vendored dandiapi other than default (#1771)

Configuer CI to test against a vendor specific DANDI API
other than the default instance of DANDI API
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Add or improve existing tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants