fix: repair ad-dashboard test

This commit is contained in:
Robert Sparks 2023-11-06 09:39:10 +01:00
parent b78eb448a5
commit 37c796ebef
No known key found for this signature in database
GPG key ID: 6E2A6A5775F91318

View file

@ -287,7 +287,7 @@ class SearchTests(TestCase):
expected = defaultdict(lambda :0)
for doc_type_name in doc_type_names:
if doc_type_name=='draft':
states = State.objects.filter(type='draft-iesg', used=True).values_list('slug', flat=True)
states = State.objects.filter(type='draft-iesg', used=True).exclude(slug="rfc").values_list('slug', flat=True)
else:
states = State.objects.filter(type=doc_type_name, used=True).values_list('slug', flat=True)