Sha256: b7a1667094ef4851e1f6086e561e2542ed2acd32f40ac065c8e0021980aacd96

Contents?: true

Size: 780 Bytes

Versions: 1

Compression:

Stored size: 780 Bytes

Contents

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Support functionality to simplify the setup for behave tests.

.. sourcecode:: python

    # -- FILE: features/environment.py
    from behave4cmd0.setup_command_shell import setup_command_shell_processors4behave

    def before_all(context):
        setup_command_shell_processors4behave()
"""

from __future__ import absolute_import
from .command_shell import Command
from .command_shell_proc import BehaveWinCommandOutputProcessor

def setup_command_shell_processors4behave():
    Command.POSTPROCESSOR_MAP["behave"] = []
    for processor_class in [BehaveWinCommandOutputProcessor]:
        if processor_class.enabled:
            processor = processor_class()
            Command.POSTPROCESSOR_MAP["behave"].append(processor)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
busser-behave-0.1.3 vendor/behave/behave4cmd0/setup_command_shell.py