~florent.x/oerpscenario/trunk-with-buildout2

« back to all changes in this revision

Viewing changes to features/support/behave_better.py

  • Committer: Alexandre Fayolle
  • Date: 2013-02-07 13:05:28 UTC
  • Revision ID: alexandre.fayolle@camptocamp.com-20130207130528-f0lbnqgln1h7om2g
[IMP] cleanup and simplify

Show diffs side-by-side

added added

removed removed

Lines of Context:
154
154
    return files
155
155
 
156
156
def _patched_load_step_definitions(self, extra_step_paths=None):
157
 
        print "load steps"
158
157
        steps_dir = os.path.join(self.base_dir, 'steps')
159
158
        if extra_step_paths is None:
160
159
            extra_step_paths = []
182
181
        sys.path.pop(0)
183
182
 
184
183
 
185
 
from types import MethodType
186
 
runner.Runner.feature_files = MethodType(_patched_feature_files, None, runner.Runner)
187
 
runner.Runner.load_step_definitions = MethodType(_patched_load_step_definitions, None, runner.Runner)
 
184
runner.Runner.feature_files = _patched_feature_files
 
185
runner.Runner.load_step_definitions = _patched_load_step_definitions