Skip to content

Commit

Permalink
add a tearDown() method, fixes issue #35
Browse files Browse the repository at this point in the history
  • Loading branch information
ohumbel committed Aug 12, 2015
1 parent 0377755 commit 0e433bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_gitFunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@

class GitFunctionsTestCase(unittest.TestCase):
def setUp(self):
self.cwd = os.getcwd()
self.createRepo()

def tearDown(self):
configuration.config = None
os.chdir(self.cwd)

def createRepo(self):
self.repodir = tempfile.mkdtemp(prefix="gitfunctionstestcase_")
configuration.config = Builder().setworkdirectory(self.repodir).setgitreponame("test.git").build()
Expand Down

0 comments on commit 0e433bc

Please sign in to comment.