Skip to content

Commit

Permalink
Correct: Replace string-based status assignment with Enum-class value…
Browse files Browse the repository at this point in the history
… (in 2 places).
  • Loading branch information
jenisys committed Nov 18, 2016
1 parent d61be73 commit c75493c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions behave/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,15 +328,15 @@ def run(self, runner):
self.clear_status() # -- ENFORCE: compute_status() after run.
if not self.scenarios and not run_feature:
# -- SPECIAL CASE: Feature without scenarios
self.set_status("skipped")
self.set_status(Status.skipped)

if hooks_called:
runner.run_hook("after_feature", runner.context, self)
for tag in self.tags:
runner.run_hook("after_tag", runner.context, tag)
if self.hook_failed:
failed_count += 1
self.set_status("failed")
self.set_status(Status.failed)

runner.context._pop() # pylint: disable=protected-access

Expand Down

0 comments on commit c75493c

Please sign in to comment.