@with_setup(prepare_stdout, registry.clear)
def test_jsonreport_output_with_background_section():
 @lettuce.step(u'the variable "(\\w+)" holds (\\d+)')
 @lettuce.step(u'the variable "(\\w+)" is equal to (\\d+)')
 def just_pass(step, *args):
  pass
 with check_jsonreport(u'background_simple'):
  runner = Runner(bg_feature_name(u'simple'), enable_jsonreport=True)
  runner.run()

@ with_setup ( prepare_stdout , registry . clear ) def test_jsonreport_output_with_background_section ( ) : @ lettuce . step ( u'the variable "(\\w+)" holds (\\d+)' ) @ lettuce . step ( u'the variable "(\\w+)" is equal to (\\d+)' ) def just_pass ( step , * args ) : pass with check_jsonreport ( u'background_simple' ) : runner = Runner ( bg_feature_name ( u'simple' ) , enable_jsonreport = True ) runner . run ( )
test jsonreport output with a background section in the feature .