Skip to content

Commit

Permalink
clean up temp dir names, to match test class names
Browse files Browse the repository at this point in the history
  • Loading branch information
n8pease committed Aug 18, 2017
1 parent e4d5b8b commit 9344225
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions tests/test_reposInButler.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#
#
# LSST Data Management System
# Copyright 2016 LSST Corporation.
#
Expand Down Expand Up @@ -100,7 +100,7 @@ def map_str(self, dataId, write):
class ReposInButler(unittest.TestCase):

def setUp(self):
self.testDir = tempfile.mkdtemp(dir=ROOT, prefix='repoOfRepos-')
self.testDir = tempfile.mkdtemp(dir=ROOT, prefix='ReposInButler-')

def tearDown(self):
if os.path.exists(self.testDir):
Expand Down
3 changes: 1 addition & 2 deletions tests/test_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,8 +768,7 @@ class TestParentRepository(unittest.TestCase):
"""A test to verify that when a parent repository is used the correct one is found."""

def setUp(self):
self.testDir = tempfile.mkdtemp(dir=ROOT, prefix="TestBasics-")
self.testDir = os.path.join(self.testDir, 'TestParentRepository')
self.testDir = tempfile.mkdtemp(dir=ROOT, prefix="TestParentRepository-")

def tearDown(self):
if os.path.exists(self.testDir):
Expand Down
7 changes: 4 additions & 3 deletions tests/test_repositoryCfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class TestCfgRelationship(unittest.TestCase):

def setUp(self):
self.testDir = tempfile.mkdtemp(dir=ROOT,
prefix="repositoryCfg-")
prefix="TestCfgRelationship-")

def tearDown(self):
if os.path.exists(self.testDir):
Expand Down Expand Up @@ -167,11 +167,12 @@ def testStorageRepoCfgCache(self):
cfg = storage.getRepositoryCfg(os.path.join(self.testDir, 'a'))
self.assertEqual(cfg, storage.repositoryCfgs[os.path.join(self.testDir, 'a')])


class TestNestedCfg(unittest.TestCase):

def setUp(self):
self.testDir = tempfile.mkdtemp(dir=ROOT,
prefix="repositoryCfg_TestNestedCfg-")
prefix="TestNestedCfg-")

def tearDown(self):
if os.path.exists(self.testDir):
Expand Down Expand Up @@ -217,7 +218,7 @@ class TestCfgFileVersion(unittest.TestCase):

def setUp(self):
self.testDir = tempfile.mkdtemp(dir=ROOT,
prefix="repositoryCfg-")
prefix="TestCfgFileVersion-")

def tearDown(self):
if os.path.exists(self.testDir):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_safeFileIo.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def setup_module(module):
class WriteOnceCompareSameTest(unittest.TestCase):

def setUp(self):
self.testDir = tempfile.mkdtemp(dir=ROOT, prefix='safeFileIo-')
self.testDir = tempfile.mkdtemp(dir=ROOT, prefix='WriteOnceCompareSameTest-')

def tearDown(self):
if os.path.exists(self.testDir):
Expand Down Expand Up @@ -154,7 +154,7 @@ class TestOneThousandWriters(unittest.TestCase):
system."""

def setUp(self):
self.testDir = tempfile.mkdtemp(dir=ROOT, prefix='TestOneThousandWriters')
self.testDir = tempfile.mkdtemp(dir=ROOT, prefix='TestOneThousandWriters-')

def tearDown(self):
if os.path.exists(self.testDir):
Expand Down

0 comments on commit 9344225

Please sign in to comment.