Skip to content

Commit

Permalink
tests: Raise an error if the requested input name is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec committed Jan 23, 2017
1 parent 9fd8e05 commit 4eba54e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Orange/widgets/tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ def send_signal(self, input_name, value, *args, widget=None):
if input_signal.name == input_name:
getattr(widget, input_signal.handler)(value, *args)
break
else:
raise ValueError("'{}' is not an input name for widget {}"
.format(input_name, type(widget).__name__))
widget.handleNewSignals()

def get_output(self, output_name, widget=None):
Expand Down

0 comments on commit 4eba54e

Please sign in to comment.