Commit cc8f11ab by zhaihuitao

update

parent 5e9b6d67
......@@ -13,3 +13,4 @@ url_prod = "http://gatling.reyun.com"
p2v = "/api-f/batchIm2Video/asyncBatchImg2V"
v2v = "/api-f/video2video/generatedAsync/false"
t2v = "/api-f/text2video/asyncGenerated"
......@@ -102,4 +102,23 @@ v2v = json.dumps({
"name": "项目名称_20220217145806_1"
}
]
})
t2v = json.dumps({
"title": "文字转视频_20220308161829",
"text2VideoList": [
{
"filename": "文字转视频_20220308161829_1",
"logoIndex": 1,
"musicUrl": "",
"templateId": "1483357236767072256",
"textId": "1479412167945068544",
"warningContent": "",
"warningIndex": 9,
"watermarkAlpha": 0.4,
"watermarkSpeed": 2
}
],
"local": False,
"library": True
})
\ No newline at end of file
......@@ -22,4 +22,9 @@ class TestGatlingAPI:
def test_v2v(self):
r = requests.post(url=config.url_prod + config.v2v, data=param.v2v, headers=config.Headers)
print(r.text)
assert r.status_code == 200
\ No newline at end of file
assert r.status_code == 200
def test_tv2(self):
r = requests.post(url=config.url_prod + config.t2v, data=param.t2v, headers=config.Headers)
print(r.text)
assert r.status_code == 200
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment