File: behave_hooks_steps.py

package info (click to toggle)
behave 1.2.6-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,160 kB
  • sloc: python: 19,857; makefile: 137; sh: 18
file content (10 lines) | stat: -rw-r--r-- 303 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
# -*- coding: utf-8 -*-

from __future__ import absolute_import
from behave import then

@then('the behave hook "{hook}" was called')
def step_behave_hook_was_called(context, hook):
    substeps = u'Then the command output should contain "hooks.{0}: "'.format(hook)
    context.execute_steps(substeps)