diff options
author | Victor Shyba <victor1984@riseup.net> | 2016-11-17 01:33:04 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2016-12-12 09:13:09 -0200 |
commit | 529dbdf27804f12da80907d25c412d10e9fa3763 (patch) | |
tree | 34e7978593562feb05b65492f951c87ccba90551 /testing/tests/perf/test_crypto.py | |
parent | 632cd2414a47bc7f471d8f501ab6250293aedf51 (diff) |
[style] fix pep8 and confs
Fixes setup.cfg, adding current exclude rules, simplified tox.ini to use
setup.cfg and fixed all.
Diffstat (limited to 'testing/tests/perf/test_crypto.py')
-rw-r--r-- | testing/tests/perf/test_crypto.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/testing/tests/perf/test_crypto.py b/testing/tests/perf/test_crypto.py index 9ce418ba..367c3b5b 100644 --- a/testing/tests/perf/test_crypto.py +++ b/testing/tests/perf/test_crypto.py @@ -5,7 +5,7 @@ SIZE_LIMT environment variable. For instance, to keep the maximum payload at 1MB: -SIZE_LIMIT=1E6 py.test -s tests/perf/test_crypto.py +SIZE_LIMIT=1E6 py.test -s tests/perf/test_crypto.py """ import pytest import os @@ -45,7 +45,7 @@ def create_doc_decryption(size): doc = SoledadDocument( doc_id=uuid4().hex, rev='rev', json=json.dumps(DOC_CONTENT)) - + encrypted_doc = yield crypto.encrypt_doc(doc) doc.set_json(encrypted_doc) @@ -74,16 +74,16 @@ def create_raw_decryption(size): # plugin. encryption_tests = [ - ('10k', 1E4), + ('10k', 1E4), ('100k', 1E5), ('500k', 5E5), - ('1M', 1E6), - ('10M', 1E7), - ('50M', 5E7), + ('1M', 1E6), + ('10M', 1E7), + ('50M', 5E7), ] for name, size in encryption_tests: - if size < LIMIT: + if size < LIMIT: sz = int(size) globals()['test_encrypt_doc_' + name] = create_doc_encryption(sz) globals()['test_decrypt_doc_' + name] = create_doc_decryption(sz) |