From cde5c3d9948b707692ec5133dc85be137eb12a92 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 23 Mar 2015 15:56:18 +0100 Subject: [PATCH] Fix tests --- tests/handlers/api/test_network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/handlers/api/test_network.py b/tests/handlers/api/test_network.py index 24231366..d675d4f6 100644 --- a/tests/handlers/api/test_network.py +++ b/tests/handlers/api/test_network.py @@ -16,8 +16,8 @@ # along with this program. If not, see . -def test_udp_allocation(server): - response = server.post('/ports/udp', {}, example=True) +def test_udp_allocation(server, project): + response = server.post('/projects/{}/ports/udp'.format(project.id), {}, example=True) assert response.status == 201 assert response.json == {'udp_port': 10000}