Skip to content

Commit

Permalink
LIBFCREPO-1353. Fixed test of non-top-level document.
Browse files Browse the repository at this point in the history
It should have the "is_top_level" field, but not the other "is_*" fields.

https://umd-dit.atlassian.net/browse/LIBFCREPO-1353
  • Loading branch information
peichman-umd committed May 14, 2024
1 parent 20f3d42 commit 281f986
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_publish_and_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 281f986

Please sign in to comment.