@pytest.mark.cmd
@pytest.mark.parametrize('command,app', [(command, app) for (command, app) in get_commands().iteritems() if (app.startswith('pootle_') or (app in CORE_APPS_WITH_COMMANDS))])
def test_initdb_help(capfd, command, app):
 print ('Command: %s, App: %s' % (command, app))
 with pytest.raises(SystemExit):
  call_command(command, '--help')
 (out, err) = capfd.readouterr()
 assert ('--help' in out)

@ pytest . mark . cmd @ pytest . mark . parametrize ( 'command,app' , [ ( command , app ) for ( command , app ) in get_commands ( ) . iteritems ( ) if ( app . startswith ( 'pootle_' ) or ( app in CORE_APPS_WITH_COMMANDS ) ) ] ) def test_initdb_help ( capfd , command , app ) : print ( 'Command: %s, App: %s' % ( command , app ) ) with pytest . raises ( SystemExit ) : call_command ( command , '--help' ) ( out , err ) = capfd . readouterr ( ) assert ( '--help' in out )
catch any simple command issues .