[PATCH] [Gingerbase] Remove unused temporary directory

1 view
Skip to first unread message

Lucio Correia

unread,
Feb 9, 2017, 12:05:00 PM2/9/17
to ginger-dev, Daniel Barboza
Signed-off-by: Lucio Correia <luci...@linux.vnet.ibm.com>
---
tests/test_model.py | 10 ----------
1 file changed, 10 deletions(-)

diff --git a/tests/test_model.py b/tests/test_model.py
index 9abd26b..913349c 100644
--- a/tests/test_model.py
+++ b/tests/test_model.py
@@ -21,7 +21,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

import os
-import shutil
import unittest

import wok.objectstore
@@ -35,13 +34,8 @@ invalid_repository_urls = ['www.fedora.org', # missing protocol
'http://www.fedora', # invalid domain name
'file:///home/foobar'] # invalid path

-TMP_DIR = '/var/lib/gingerbase/tests/'
-

def setUpModule():
- if not os.path.exists(TMP_DIR):
- os.makedirs(TMP_DIR)
-
# iso_gen.construct_fake_iso(UBUNTU_ISO, True, '14.04', 'ubuntu')

# Some FeatureTests functions depend on server to validate their result.
@@ -53,10 +47,6 @@ def setUpModule():
Singleton._instances = {}


-def tearDownModule():
- shutil.rmtree(TMP_DIR)
-
-
class ModelTests(unittest.TestCase):
def setUp(self):
self.tmp_store = '/tmp/gingerbase-store-test'
--
2.7.4

Daniel Henrique Barboza

unread,
Feb 10, 2017, 7:33:35 AM2/10/17
to Lucio Correia, ginger-dev
Applied. Thanks!
Reply all
Reply to author
Forward
0 new messages