Skip to content

Commit 5bea2ee

Browse files
authored
Merge pull request #229 from simleo/fix_add_action_mentions
add_action: do not auto link the action from RDE mentions
2 parents 6320c24 + 3c6b446 commit 5bea2ee

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

rocrate/rocrate.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,6 @@ def add_action(self, instrument, identifier=None, object=None, result=None, prop
629629
action["object"] = object
630630
if result:
631631
action["result"] = result
632-
self.root_dataset.append_to("mentions", action)
633632
return action
634633

635634
def add_formal_parameter(

test/test_wrroc.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ def test_add_action(tmpdir):
5555
)
5656
assert create_action.type == "CreateAction"
5757
create_actions = crate.get_by_type("CreateAction")
58-
assert crate.root_dataset.get("mentions") == create_actions
5958
assert create_actions == [create_action]
6059
assert create_action.get("instrument") is instrument
6160
assert create_action.get("object") == [f_in, param]
@@ -74,7 +73,6 @@ def test_add_action(tmpdir):
7473
}
7574
)
7675
assert activate_action.type == "ActivateAction"
77-
assert crate.root_dataset.get("mentions") == [create_action, activate_action]
7876
assert activate_action.get("instrument") is instrument
7977
assert activate_action.get("object") == [f_out]
8078
assert "result" not in activate_action

0 commit comments

Comments
 (0)