Repository: allura
Updated Branches:
  refs/heads/master 19ada4d0e -> e30522555


Make TOTP google auth tests runnable in parallel


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/e3052255
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/e3052255
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/e3052255

Branch: refs/heads/master
Commit: e30522555578f49a39b730eb150a1d12c2c29915
Parents: 19ada4d
Author: Dave Brondsema <d...@brondsema.net>
Authored: Tue Sep 20 16:29:51 2016 -0400
Committer: Dave Brondsema <d...@brondsema.net>
Committed: Tue Sep 20 16:29:51 2016 -0400

----------------------------------------------------------------------
 Allura/allura/tests/test_multifactor.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/e3052255/Allura/allura/tests/test_multifactor.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/test_multifactor.py 
b/Allura/allura/tests/test_multifactor.py
index 6b28c79..ad6dbc2 100644
--- a/Allura/allura/tests/test_multifactor.py
+++ b/Allura/allura/tests/test_multifactor.py
@@ -15,10 +15,10 @@
 #       specific language governing permissions and limitations
 #       under the License.
 import shutil
+import tempfile
 import textwrap
 import os
 
-import bson
 from paste.deploy.converters import asint
 import ming
 from cryptography.hazmat.primitives.twofactor import InvalidToken
@@ -186,7 +186,7 @@ class 
TestMongodbTotpService(TestAnyTotpServiceImplementation):
 class TestGoogleAuthenticatorPamFilesystemMixin(object):
 
     def setUp(self):
-        self.totp_basedir = os.path.join(os.getenv('TMPDIR', '/tmp'), 
'totp-test')
+        self.totp_basedir = tempfile.mkdtemp(prefix='totp-test', 
dir=os.getenv('TMPDIR', '/tmp'))
         config['auth.multifactor.totp.filesystem.basedir'] = self.totp_basedir
 
     def tearDown(self):

Reply via email to