Commit e89bf751 authored by Łukasz Nowak's avatar Łukasz Nowak

Allow to override cache and dir via env.

parent e1d69461
...@@ -20,8 +20,8 @@ class OfflineTest(unittest.TestCase): ...@@ -20,8 +20,8 @@ class OfflineTest(unittest.TestCase):
class OnlineTest(unittest.TestCase): class OnlineTest(unittest.TestCase):
"""Online tests against real (or simulated?) HTTP server""" """Online tests against real (or simulated?) HTTP server"""
def setUp(self): def setUp(self):
self.shacache = 'http://127.0.0.1:8080' self.shacache = os.environ.get('TEST_SHA_CACHE', 'http://127.0.0.1:8080')
self.shadir = 'http://127.0.0.1:8080' self.shadir = os.environ.get('TEST_SHA_DIR', 'http://127.0.0.1:8080')
self.test_data = tempfile.TemporaryFile() self.test_data = tempfile.TemporaryFile()
self.test_string = str(random.random()) self.test_string = str(random.random())
self.test_data.write(self.test_string) self.test_data.write(self.test_string)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment