Skip to content

Commit aeca9a4

Browse files
authored
Merge pull request #111 from casework/enable_doctests
Enable doctests on modules
2 parents fe56b72 + 9397f13 commit aeca9a4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

case_utils/ontology/src/ontology_and_version_iris.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
def concept_is_cdo_concept(n_concept: rdflib.URIRef) -> bool:
3030
"""
3131
This function is purposefully distinct from the function used in case_validate. Within this script, the publishing history of CASE and UCO is reviewed.
32+
33+
>>> concept_is_cdo_concept(rdflib.URIRef("http://example.org/ontology/Thing"))
34+
False
35+
>>> concept_is_cdo_concept(rdflib.URIRef("https://ontology.unifiedcyberontology.org/uco/core/UcoThing"))
36+
True
3237
"""
3338
concept_iri = str(n_concept)
3439
return (

tests/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ check: \
5959
check-mypy \
6060
check-isomorphic_diff \
6161
check-case_utils
62+
source venv/bin/activate \
63+
&& pytest \
64+
--doctest-modules \
65+
--log-level=DEBUG \
66+
$(top_srcdir)/case_utils
6267
source venv/bin/activate \
6368
&& pytest \
6469
--ignore case_utils \

0 commit comments

Comments
 (0)