1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-23 23:38:21 +00:00

Fix tests

This commit is contained in:
Julien Duponchelle 2015-03-23 15:56:18 +01:00
parent f4c7212e33
commit cde5c3d994

View File

@ -16,8 +16,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
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}