Skip to content

Commit

Permalink
Added obsolete command examples. (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrshdhgd authored May 8, 2023
1 parent 47dbc26 commit 6ea106a
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/data/examples/examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,19 @@ Test_18:
about_node_representation: curie
command_with_curie: remove definition for GO:0005634
command_with_uri: remove definition for http://purl.obolibrary.org/obo/GO_0005634
Test_19:
id: CHANGE:001
type: NodeObsoletion
about_node: GO:0005634
about_node_representation: curie
command_with_curie: obsolete GO:0005634
command_with_uri: obsolete http://purl.obolibrary.org/obo/GO_0005634
Test_20:
id: CHANGE:001
type: NodeObsoletionWithDirectReplacement
about_node: GO:0005634
about_node_representation: curie
has_direct_replacement: GO:9999999
command_with_curie: obsolete GO:0005634 with replacement GO:9999999
command_with_uri: obsolete http://purl.obolibrary.org/obo/GO_0005634 with replacement
http://purl.obolibrary.org/obo/GO_9999999
21 changes: 21 additions & 0 deletions tests/cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,4 +328,25 @@
),
None,
),
(
f"obsolete {NUCLEUS}",
f"obsolete {NUCLEUS_URI}",
NodeObsoletion(
id=UID,
about_node=NUCLEUS,
about_node_representation="curie",
),
None,
),
(
f"obsolete {NUCLEUS} with replacement {NEW_TERM}",
f"obsolete {NUCLEUS_URI} with replacement {NEW_TERM_URI}",
NodeObsoletionWithDirectReplacement(
id=UID,
about_node=NUCLEUS,
about_node_representation="curie",
has_direct_replacement=NEW_TERM
),
None,
),
]

0 comments on commit 6ea106a

Please sign in to comment.