@with_setup(prepare_stdout, registry.clear)
def test_jsonreport_output_with_different_filename():
 with check_jsonreport(u'error_traceback', u'custom_filename.json'):
  runner = Runner(feature_name(u'error_traceback'), enable_jsonreport=True, jsonreport_filename=u'custom_filename.json')
  runner.run()

@ with_setup ( prepare_stdout , registry . clear ) def test_jsonreport_output_with_different_filename ( ) : with check_jsonreport ( u'error_traceback' , u'custom_filename.json' ) : runner = Runner ( feature_name ( u'error_traceback' ) , enable_jsonreport = True , jsonreport_filename = u'custom_filename.json' ) runner . run ( )
test jsonreport output with different filename .