mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-16 20:20:29 +03:00
tests: name temp test dir after test function that used it
This commit is contained in:
parent
30b2f5a48a
commit
3ff4b656c6
3 changed files with 9 additions and 10 deletions
|
|
@ -87,7 +87,7 @@ class UpdateTest(unittest.TestCase):
|
|||
tmpdir = os.path.join(localmodule, '.testfiles')
|
||||
if not os.path.exists(tmpdir):
|
||||
os.makedirs(tmpdir)
|
||||
tmptestsdir = tempfile.mkdtemp(prefix='test_insert_triple_t_metadata-', dir=tmpdir)
|
||||
tmptestsdir = tempfile.mkdtemp(prefix=inspect.currentframe().f_code.co_name, dir=tmpdir)
|
||||
packageDir = os.path.join(tmptestsdir, 'build', packageName)
|
||||
shutil.copytree(importer, packageDir)
|
||||
|
||||
|
|
@ -374,7 +374,7 @@ class UpdateTest(unittest.TestCase):
|
|||
tmpdir = os.path.join(localmodule, '.testfiles')
|
||||
if not os.path.exists(tmpdir):
|
||||
os.makedirs(tmpdir)
|
||||
tmptestsdir = tempfile.mkdtemp(prefix='test_process_apk_signed_by_disabled_algorithms-',
|
||||
tmptestsdir = tempfile.mkdtemp(prefix=inspect.currentframe().f_code.co_name,
|
||||
dir=tmpdir)
|
||||
print('tmptestsdir', tmptestsdir)
|
||||
os.chdir(tmptestsdir)
|
||||
|
|
@ -504,7 +504,7 @@ class UpdateTest(unittest.TestCase):
|
|||
tmpdir = os.path.join(localmodule, '.testfiles')
|
||||
if not os.path.exists(tmpdir):
|
||||
os.makedirs(tmpdir)
|
||||
tmptestsdir = tempfile.mkdtemp(prefix='test_create_metadata_from_template-',
|
||||
tmptestsdir = tempfile.mkdtemp(prefix=inspect.currentframe().f_code.co_name,
|
||||
dir=tmpdir)
|
||||
print('tmptestsdir', tmptestsdir)
|
||||
os.chdir(tmptestsdir)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue