Skip to content

Commit

Permalink
Remove test bag created during test in tearDown().
Browse files Browse the repository at this point in the history
  • Loading branch information
RKrahl committed Oct 26, 2015
1 parent 7f139b7 commit 7b9dda4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/bagcreate.py
Expand Up @@ -14,6 +14,8 @@ def setUp(self):
def tearDown(self):
if os.path.exists(os.path.join(os.getcwd(), 'test', 'newtestbag')):
shutil.rmtree(os.path.join(os.getcwd(), 'test', 'newtestbag'))
if os.path.exists(os.path.join(os.getcwd(), 'test', 'tëst')):
shutil.rmtree(os.path.join(os.getcwd(), 'test', 'tëst'))

def test_minimal_bag_creation(self):
newbag = BagIt(os.path.join(os.getcwd(), 'test', 'newtestbag'), extended=False)
Expand Down

0 comments on commit 7b9dda4

Please sign in to comment.