mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Add missing curl example
This commit is contained in:
1 parent
77ee6501b9
commit
4848eeabad
7 files changed
+57
-5
No files matched your search
@@ -64,7 +64,7 @@ def test_show_project(server):
|
||||
query = {"uuid": "00010203-0405-0607-0809-0a0b0c0d0e0f", "location": "/tmp", "temporary": False}
|
||||
response = server.post("/project", query)
|
||||
assert response.status == 200
|
||||
response = server.get("/project/00010203-0405-0607-0809-0a0b0c0d0e0f")
|
||||
response = server.get("/project/00010203-0405-0607-0809-0a0b0c0d0e0f", example=True)
|
||||
assert response.json == query
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ def test_update_temporary_project(server):
|
||||
response = server.post("/project", query)
|
||||
assert response.status == 200
|
||||
query = {"temporary": False}
|
||||
response = server.put("/project/{uuid}".format(uuid=response.json["uuid"]), query)
|
||||
response = server.put("/project/{uuid}".format(uuid=response.json["uuid"]), query, example=True)
|
||||
assert response.status == 200
|
||||
assert response.json["temporary"] is False
|
||||
|
||||
|
||||
Reference in new issue
Block a user