Refactors tests folder to separate different modules

Each module has a different folder and they do not share methods now. At some point they should be split in different repos
This commit is contained in:
Sergi Delgado Segura
2019-12-16 11:26:51 +01:00
parent bc250bd814
commit 61663e89d7
26 changed files with 29 additions and 15 deletions

0
test/apps/__init__.py Normal file
View File

View File

View File

View File

@@ -0,0 +1,7 @@
import random
def get_random_value_hex(nbytes):
pseudo_random_value = random.getrandbits(8 * nbytes)
prv_hex = "{:x}".format(pseudo_random_value)
return prv_hex.zfill(2 * nbytes)

View File

@@ -7,7 +7,7 @@ from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.asymmetric import ec
import apps.cli.pisa_cli as pisa_cli
from test.unit.conftest import get_random_value_hex
from test.apps.cli.unit.conftest import get_random_value_hex
# TODO: should find a way of doing without this
from apps.cli.pisa_cli import build_appointment