mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-23 23:38:21 +00:00
Fix tests
This commit is contained in:
parent
f4c7212e33
commit
cde5c3d994
@ -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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user