mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-19 23:11:44 +01:00
tests: use shortuuid for shorter paths
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -95,6 +95,7 @@ tests_requirements = [
|
||||
"flake8-docstrings",
|
||||
"jaraco.windows==3.9.2",
|
||||
"mock-ssh-server>=0.5.0",
|
||||
"shortuuid>=0.5.0",
|
||||
]
|
||||
|
||||
if (sys.version_info) >= (3, 6):
|
||||
|
||||
+2
-2
@@ -4,7 +4,7 @@ from __future__ import unicode_literals
|
||||
|
||||
import os
|
||||
import shutil
|
||||
import uuid
|
||||
import shortuuid
|
||||
import tempfile
|
||||
import logging
|
||||
import warnings
|
||||
@@ -85,7 +85,7 @@ class TestDirFixture(object):
|
||||
@staticmethod
|
||||
def mkdtemp(base_directory=None):
|
||||
prefix = "dvc-test.{}.".format(os.getpid())
|
||||
suffix = ".{}".format(uuid.uuid4())
|
||||
suffix = ".{}".format(shortuuid.uuid())
|
||||
return tempfile.mkdtemp(
|
||||
prefix=prefix, suffix=suffix, dir=base_directory
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user