Files
openide/python/helpers/python-skeletons/lettuce/terrain.py
Ilya.Kazakevich 1797366780 Repository sync
2016-05-10 16:02:40 +03:00

78 lines
1.5 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# coding=utf-8
"""
Lettuce terrain hooks: http://lettuce.it/reference/terrain.html
"""
__author__ = 'Ilya.Kazakevich'
class __When(object):
@staticmethod
def all(function):
"""
Runs before/after all features, scenarios and steps
"""
pass
@staticmethod
def each_step(function):
"""
Runs before/after each step
"""
pass
@staticmethod
def each_scenario(function):
"""
Runs before/after each scenario
"""
pass
@staticmethod
def each_outline(function):
"""
Runs before/after each outline in scenario outline.
Accepts scenario (object) and outline(dict) as arguments.
Available only since 0.22
"""
pass
@staticmethod
def each_background(function):
"""
Runs before/after each background
"""
pass
@staticmethod
def each_feature(function):
"""
Runs before/after each feature
"""
pass
@staticmethod
def each_app(function):
"""
Runs before/after each Django app.
"""
pass
@staticmethod
def runserver(function):
"""
Runs before/after lettuce starts up the built-in http server.
"""
pass
@staticmethod
def handle_request(function):
"""
Runs before/after lettuces built-in HTTP server responds to a request.
"""
pass
before = __When()
after = __When()