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.
version dependent assertion issues fixed
Signed-off-by: UTKARSH KUMAR <[email protected]>
- Loading branch information
Showing
4 changed files
with
17 additions
and
21 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
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 |
---|---|---|
|
@@ -20,6 +20,7 @@ | |
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" | ||
|
@@ -170,10 +171,8 @@ def test_autorizar(auth): | |
|
||
assert (wsfexv1.Resultado == "A") | ||
|
||
if sys.version_info[0] == 3: | ||
assert isinstance(wsfexv1.CAE,str) | ||
elif sys.version_info[0] == 2: | ||
assert isinstance((wsfexv1.CAE),future.types.newstr) | ||
assert isinstance(wsfexv1.CAE,str) | ||
|
||
|
||
assert (wsfexv1.CAE) | ||
|
||
|
@@ -233,9 +232,7 @@ def test_parametros(auth): | |
assert (wsfexv1.GetParamIncoterms()) | ||
assert (wsfexv1.GetParamMonConCotizacion()) | ||
#assert (wsfexv1.GetParamPtosVenta()) | ||
if sys.version_info[0] == 3: | ||
assert isinstance(wsfexv1.GetParamCtz("DOL"),str) | ||
elif sys.version_info[0] == 2: | ||
assert isinstance((wsfexv1.GetParamCtz("DOL")),future.types.newstr) | ||
assert isinstance(wsfexv1.GetParamCtz("DOL"),str) | ||
|
||
|
||
|