示例#1
0
def test_main_solicitar_caea(auth):
    sys.argv = []
    fecha = datetime.datetime.now().strftime("%Y-%m-%d")
    periodo = fecha.replace("-", "")[:6]
    orden = 1 if int(fecha[-2:]) < 16 else 2
    sys.argv.append('--debug')
    sys.argv.append('--solicitar-caea')
    sys.argv.append(periodo)
    sys.argv.append(orden)
    main()
示例#2
0
def test_main_caea(auth):
    sys.argv = []
    sys.argv.append('--debug')
    sys.argv.append('--prueba')
    sys.argv.append('--caea')
    main()
示例#3
0
def test_main_cotizacion(auth):
    sys.argv = []
    sys.argv.append('--cotizacion')
    main()
示例#4
0
def test_main_parametros(auth):
    sys.argv = []
    sys.argv.append('--parametros')
    main()
示例#5
0
def test_main_punto_venta(auth):
    sys.argv = []
    sys.argv.append('--puntosventa')
    main()
示例#6
0
def test_main_ajustar(auth):
    sys.argv = []
    sys.argv.append('--ajustar')
    main()
示例#7
0
def test_main_rg4540(auth):
    sys.argv = []
    sys.argv.append('--prueba')
    sys.argv.append('--rg4540')
    main()
示例#8
0
def test_main_fce(auth):
    sys.argv = []
    sys.argv.append('--prueba')
    sys.argv.append('--fce')
    main()
示例#9
0
def test_main_prueba(auth):
    sys.argv = []
    sys.argv.append('--dummy')
    sys.argv.append('--prueba')
    main()