forked from reingart/pyafipws
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request reingart#64 from chazuttu/version_issues_fixed
Python Version issues fixed
- Loading branch information
Showing
15 changed files
with
59 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[pytest] | ||
markers = | ||
dontusefix: Dont use fixture in the current file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,8 @@ | |
import pytest | ||
from pyafipws.wsaa import WSAA | ||
from pyafipws.wsfexv1 import WSFEXv1 | ||
import future | ||
from builtins import str | ||
|
||
__author__ = "Mariano Reingart <[email protected]>" | ||
__copyright__ = "Copyright (C) 2010-2019 Mariano Reingart" | ||
|
@@ -151,7 +153,7 @@ def test_agregar_cbte_asoc(auth): | |
) | ||
assert cbteasoc==True | ||
|
||
@pytest.mark.skipif(sys.version_info < (3, 7), reason="requires python3.7 or higher") | ||
|
||
def test_autorizar(auth): | ||
"""Test Autorizar Comprobante.""" | ||
wsfexv1 = auth | ||
|
@@ -168,7 +170,10 @@ def test_autorizar(auth): | |
wsfexv1.GetCMP(tipo_cbte, punto_vta, cbte_nro) | ||
|
||
assert (wsfexv1.Resultado == "A") | ||
assert isinstance(wsfexv1.CAE, str) | ||
|
||
assert isinstance(wsfexv1.CAE,str) | ||
|
||
|
||
assert (wsfexv1.CAE) | ||
|
||
#commented because wsfexv1.Vencimiento giving wrong expiration date | ||
|
@@ -212,7 +217,7 @@ def test_recuperar_numero_transaccion(auth): | |
idx = wsfexv1.GetLastID() | ||
# TODO: assertEqual(idy, idx) | ||
|
||
@pytest.mark.skipif(sys.version_info < (3, 7), reason="requires python3.7 or higher") | ||
|
||
def test_parametros(auth): | ||
"""Test de Parametros.""" | ||
wsfexv1 = auth | ||
|
@@ -227,6 +232,7 @@ def test_parametros(auth): | |
assert (wsfexv1.GetParamIncoterms()) | ||
assert (wsfexv1.GetParamMonConCotizacion()) | ||
#assert (wsfexv1.GetParamPtosVenta()) | ||
assert isinstance(wsfexv1.GetParamCtz("DOL"), str) | ||
assert isinstance(wsfexv1.GetParamCtz("DOL"),str) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters