Răsfoiți Sursa

Lower PBKDF2 iteration count for the tests

This cuts testing time to about one third for me.
Marian Beermann 9 ani în urmă
părinte
comite
478a6f29b6
1 a modificat fișierele cu 6 adăugiri și 1 ștergeri
  1. 6 1
      conftest.py

+ 6 - 1
conftest.py

@@ -27,7 +27,12 @@ setup_logging()
 
 from borg.testsuite import has_lchflags, no_lchlfags_because, has_llfuse
 from borg.testsuite.platform import fakeroot_detected
-from borg import xattr
+from borg import xattr, constants
+
+
+def pytest_configure(config):
+    # no fixture-based monkey-patching since star-imports are used for the constants module
+    constants.PBKDF2_ITERATIONS = 1
 
 
 def pytest_report_header(config, startdir):