From 1f12409152b0d800e4ec011e81f8347ce11acec5 Mon Sep 17 00:00:00 2001 From: Roni Choudhury Date: Sat, 21 Sep 2024 09:21:57 -0400 Subject: [PATCH] Update tests to reflect corrected logic The "erased" Dandisets have an empty draft version, but a non-empty published version. --- dandiapi/api/tests/test_dandiset.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dandiapi/api/tests/test_dandiset.py b/dandiapi/api/tests/test_dandiset.py index 1dbf86355..7a64181c9 100644 --- a/dandiapi/api/tests/test_dandiset.py +++ b/dandiapi/api/tests/test_dandiset.py @@ -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',