diff test/test_hyperdbvals.py @ 7212:76a21cf791b9

Add config argument for one more call Also added Mock so it gets tested.
author John Rouillard <rouilj@ieee.org>
date Sat, 04 Mar 2023 11:51:45 -0500
parents f8893e1cde0d
children 978285986b2c
line wrap: on
line diff
--- a/test/test_hyperdbvals.py	Sat Mar 04 00:17:26 2023 -0500
+++ b/test/test_hyperdbvals.py	Sat Mar 04 11:51:45 2023 -0500
@@ -10,6 +10,7 @@
 
 import unittest, os, shutil, errno, sys, difflib, cgi, re
 from hashlib import sha1
+from mock import Mock
 
 from roundup import init, instance, password, hyperdb, date
 
@@ -57,6 +58,7 @@
     classes = {'test': TestClass(), 'test2': TestClass2()}
     def getUserTimezone(self):
         return 0
+    config = Mock(PASSWORD_PBKDF2_DEFAULT_ROUNDS =  1000)
 
 class RawToHyperdbTest(unittest.TestCase):
     def _test(self, propname, value, itemid=None):

Roundup Issue Tracker: http://roundup-tracker.org/