Sha256: 075146abbab60bd12bd618fb41f25ff440a5a17cc9525c5a50b2c495e8094a63

Contents?: true

Size: 1.5 KB

Versions: 2

Compression:

Stored size: 1.5 KB

Contents

#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import absolute_import
# -- ENSURE: Use local path during development.
import sys
import os.path

# ----------------------------------------------------------------------------
# SETUP PATHS:
# ----------------------------------------------------------------------------
NAME = "behave"
HERE = os.path.dirname(__file__)
TOP  = os.path.join(HERE, "..")
if os.path.isdir(os.path.join(TOP, NAME)):
    sys.path.insert(0, os.path.abspath(TOP))

# ----------------------------------------------------------------------------
# BEHAVE-TWEAKS:
# ----------------------------------------------------------------------------
def setup_behave():
    """
    Apply tweaks, extensions and patches to "behave".
    """
    from behave.configuration import Configuration
    # -- DISABLE: Timings to simplify issue.features/ tests.
    # Configuration.defaults["format0"] = "pretty"
    # Configuration.defaults["format0"] = "progress"
    Configuration.defaults["show_timings"] = False

def behave_main0():
    # from behave.configuration import Configuration
    from behave.__main__ import main as behave_main
    setup_behave()
    return behave_main()

# ----------------------------------------------------------------------------
# MAIN:
# ----------------------------------------------------------------------------
if __name__ == "__main__":
    if "COVERAGE_PROCESS_START" in os.environ:
        import coverage
        coverage.process_startup()
    sys.exit(behave_main0())

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
busser-behave-0.1.3 vendor/behave/bin/behave
busser-behave-0.1.3 vendor/behave/bin/behave_cmd.py