Coding style.
Moved Runner class into worker.py and renamed it to Worker.
This commit is contained in:
parent
4fa5b524d4
commit
ccdd89fa28
3 changed files with 98 additions and 94 deletions
|
|
@ -12,7 +12,7 @@ import unittest
|
|||
|
||||
import sandbox_fs
|
||||
import tools
|
||||
import vigil
|
||||
import worker
|
||||
|
||||
|
||||
class WorkerTestCase(unittest.TestCase):
|
||||
|
|
@ -30,7 +30,7 @@ class WorkerTestCase(unittest.TestCase):
|
|||
|
||||
def _test_worker(self, sandbox):
|
||||
loop = asyncio.get_event_loop()
|
||||
worker_ = vigil.Runner(sandbox, False, False)
|
||||
worker_ = worker.Worker(sandbox, False, False)
|
||||
loop.run_until_complete(worker_.create_process())
|
||||
future = worker_.run_tool("foo", tools.metadata)
|
||||
status = loop.run_until_complete(future)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue