Updates tests to be pytests friedly

pytests already runs all the test_ functions, so there's no need to call them
This commit is contained in:
Sergi Delgado Segura
2019-10-08 18:57:29 +01:00
parent 9a18f759f9
commit fa5f587134
3 changed files with 17 additions and 27 deletions

View File

@@ -4,6 +4,8 @@ from pisa import logging
from apps.cli.blob import Blob
from pisa.conf import SUPPORTED_CIPHERS, SUPPORTED_HASH_FUNCTIONS
logging.getLogger().disabled = True
def test_init_blob():
data = urandom(64).hex()
@@ -87,8 +89,3 @@ def test_encrypt():
assert(encrypted_blob == encrypted_blob2 and id(encrypted_blob) != id(encrypted_blob2))
logging.getLogger().disabled = True
test_init_blob()
test_encrypt()