Skip to content

Commit

Permalink
Fix another test logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Mec-iS committed Aug 17, 2022
1 parent f9e4714 commit 866f800
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_namespaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ def test_describe_ns(kg_test_data):
"""
df = kg_test_data.describe_ns()

assert len(df) == 29
s = set(df["prefix"])
exp_ns_keys = {'rdfs', 'skos', 'time', 'ssn', 'org', 'owl', 'doap',
'brick', 'odrl', 'qb', 'void', 'dct', 'dcmitype', 'prof',
'foaf', 'sosa', 'xml', 'dcam', 'schema1', 'dcterms', 'vann',
'schema', 'dcat', 'csvw', 'dc', 'sh', 'rdf', 'prov', 'xsd'}
assert exp_ns_keys.issubset(s)

for prfx in kg_test_data._DEFAULT_NAMESPACES:
assert prfx in list(df["prefix"])

0 comments on commit 866f800

Please sign in to comment.