Skip to content

Commit

Permalink
tests -- publishFailed test now fully asserts all the args.
Browse files Browse the repository at this point in the history
  • Loading branch information
pscadding committed Aug 18, 2016
1 parent 6dd2edc commit b2327e0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,9 @@ def process(self, instance):
count = {"#": 0}

def on_failed(plugin, context, instance, error):
#todo: add further checks for the other incoming args
#assert isinstance(instance, CheckInstanceFailRaise)
#assert isinstance(plugin, pyblish.api.InstancePlugin)
assert issubclass(plugin, pyblish.api.InstancePlugin) #plugin == CheckInstanceFail
assert isinstance(context, pyblish.api.Context)
assert isinstance(instance, pyblish.api.Instance)
assert isinstance(error, Exception)

count["#"] += 1
Expand Down

0 comments on commit b2327e0

Please sign in to comment.