Skip to content

Commit

Permalink
add test for new helper method
Browse files Browse the repository at this point in the history
  • Loading branch information
bleepbop committed Sep 25, 2023
1 parent 8092725 commit d2d5566
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/objects/test_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,3 +587,12 @@ async def test_check_reason_skipped_other(self, custom_agent, test_ability, mock
assert reason['reason_id'] == Operation.Reason.OTHER.value
assert reason['ability_id'] == test_ability.ability_id
assert reason['ability_name'] == test_ability.name

async def test_add_ignored_link(self, make_test_link, operation_agent):
test_agent = operation_agent
test_link = make_test_link(9876, test_agent.paw, Link().states['DISCARD'])
op = Operation(name='test', agents=[test_agent], state='running')
op.add_ignored_link(test_link)
assert op.ignored_links
assert test_link in op.ignored_links
assert len(op.ignored_links) == 1

0 comments on commit d2d5566

Please sign in to comment.