From 281f98615721d64696bee21ae39f045469abd0b3 Mon Sep 17 00:00:00 2001 From: Peter Eichman Date: Tue, 14 May 2024 11:12:29 -0400 Subject: [PATCH] LIBFCREPO-1353. Fixed test of non-top-level document. It should have the "is_top_level" field, but not the other "is_*" fields. https://umd-dit.atlassian.net/browse/LIBFCREPO-1353 --- tests/test_publish_and_discovery.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_publish_and_discovery.py b/tests/test_publish_and_discovery.py index a0a1f94..166a147 100644 --- a/tests/test_publish_and_discovery.py +++ b/tests/test_publish_and_discovery.py @@ -24,10 +24,10 @@ def test_publish_and_discovery_flags(index, rdf_types, is_published, is_top_leve def test_only_top_level_have_flags(index): - # Not top-level, should not have the "is_*" flags + # Not top-level, should not have the "is_*" flags other than "is_top_level:false" doc = index({}) + assert not doc['is_top_level'] assert 'is_published' not in doc - assert 'is_top_level' not in doc assert 'is_hidden' not in doc assert 'is_discoverable' not in doc