Fix project path

This commit is contained in:
Julien Duponchelle committed 2015-01-21 11:33:24 +01:00
1 parent ba91cbaac0
commit df31b2ad5a
9 files changed
+18 -18

No files matched your search

+2 -1
View File
@@ -151,11 +151,12 @@ def server(request, loop):
port = _get_unused_port()
host = "localhost"
app = web.Application()
port_manager = PortManager("127.0.0.1", False)
for method, route, handler in Route.get_routes():
app.router.add_route(method, route, handler)
for module in MODULES:
instance = module.instance()
instance.port_manager = PortManager("127.0.0.1", False)
instance.port_manager = port_manager
srv = loop.create_server(app.make_handler(), host, port)
srv = loop.run_until_complete(srv)
+2 -2
View File
@@ -47,5 +47,5 @@ def test_json(tmpdir):
def test_vm_working_directory(tmpdir):
p = Project(location=str(tmpdir))
assert os.path.exists(p.vm_working_directory('00010203-0405-0607-0809-0a0b0c0d0e0f'))
assert os.path.exists(os.path.join(str(tmpdir), p.uuid, 'vms', '00010203-0405-0607-0809-0a0b0c0d0e0f'))
assert os.path.exists(p.vm_working_directory('vpcs', '00010203-0405-0607-0809-0a0b0c0d0e0f'))
assert os.path.exists(os.path.join(str(tmpdir), p.uuid, 'vms', 'vpcs', '00010203-0405-0607-0809-0a0b0c0d0e0f'))