Coding style.
Finish moving _CACHE_PATH to tools.
This commit is contained in:
parent
5c75832efb
commit
736dd3a701
2 changed files with 5 additions and 9 deletions
|
|
@ -11,7 +11,6 @@ import unittest
|
|||
|
||||
import sandbox_fs
|
||||
import tools
|
||||
import vigil
|
||||
import worker
|
||||
|
||||
|
||||
|
|
@ -21,7 +20,7 @@ class WorkerTestCase(unittest.TestCase):
|
|||
self.temp_dir = tempfile.mkdtemp()
|
||||
self.original_working_dir = os.getcwd()
|
||||
os.chdir(self.temp_dir)
|
||||
os.mkdir(vigil._CACHE_PATH)
|
||||
os.mkdir(tools._CACHE_PATH)
|
||||
open("foo", "w").close()
|
||||
|
||||
def tearDown(self):
|
||||
|
|
@ -31,7 +30,7 @@ class WorkerTestCase(unittest.TestCase):
|
|||
def _test_worker(self, sandbox):
|
||||
status = worker.Worker(sandbox).run_tool("foo", tools.metadata)
|
||||
self.assertEqual(status, tools.Status.normal)
|
||||
result_path = os.path.join(vigil._CACHE_PATH, "foo-metadata")
|
||||
result_path = os.path.join(tools._CACHE_PATH, "foo-metadata")
|
||||
self.assertTrue(os.path.exists(result_path))
|
||||
|
||||
def test_run_job_without_sandbox(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue