Skip to content

Commit

Permalink
Update tests to reflect corrected logic
Browse files Browse the repository at this point in the history
The "erased" Dandisets have an empty draft version, but a non-empty
published version.
  • Loading branch information
waxlamp committed Sep 21, 2024
1 parent 77c4d09 commit 1f12409
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dandiapi/api/tests/test_dandiset.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ def test_dandiset_rest_list(api_client, user, dandiset):
[
('', ['empty', 'draft', 'published', 'erased']),
('?draft=false', ['published', 'erased']),
('?empty=false', ['draft', 'published']),
('?empty=false', ['draft', 'published', 'erased']),
('?draft=true&empty=true', ['empty', 'draft', 'published', 'erased']),
('?empty=true&draft=true', ['empty', 'draft', 'published', 'erased']),
('?draft=false&empty=false', ['published']),
('?draft=false&empty=false', ['published', 'erased']),
],
ids=[
'nothing',
Expand Down

0 comments on commit 1f12409

Please sign in to comment.