@needs('pavelib.prereqs.install_prereqs')
@cmdopts(BOKCHOY_OPTS)
@PassthroughTask
@timed
def test_bokchoy(options, passthrough_options):
 using_firefox = (os.environ.get('SELENIUM_BROWSER', 'firefox') == 'firefox')
 validate_firefox = getattr(options, 'validate_firefox_version', using_firefox)
 if validate_firefox:
  check_firefox_version()
 run_bokchoy(options.test_bokchoy, passthrough_options)

@ needs ( 'pavelib.prereqs.install_prereqs' ) @ cmdopts ( BOKCHOY_OPTS ) @ PassthroughTask @ timed def test_bokchoy ( options , passthrough_options ) : using_firefox = ( os . environ . get ( 'SELENIUM_BROWSER' , 'firefox' ) == 'firefox' ) validate_firefox = getattr ( options , 'validate_firefox_version' , using_firefox ) if validate_firefox : check_firefox_version ( ) run_bokchoy ( options . test_bokchoy , passthrough_options )
run acceptance tests that use the bok-choy framework .