mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40: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
|
|
@ -32,8 +32,7 @@ class LintTest(unittest.TestCase):
|
|||
self.assertTrue(fdroidserver.lint.check_for_unsupported_metadata_files())
|
||||
|
||||
tmpdir = os.path.join(localmodule, '.testfiles')
|
||||
tmptestsdir = tempfile.mkdtemp(prefix='test_check_for_unsupported_metadata_files-',
|
||||
dir=tmpdir)
|
||||
tmptestsdir = tempfile.mkdtemp(prefix=inspect.currentframe().f_code.co_name, dir=tmpdir)
|
||||
self.assertFalse(fdroidserver.lint.check_for_unsupported_metadata_files(tmptestsdir + '/'))
|
||||
shutil.copytree(os.path.join(localmodule, 'tests', 'metadata'),
|
||||
os.path.join(tmptestsdir, 'metadata'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue