refactor common
This commit is contained in:
parent
26d8985b1a
commit
3dd905d3d5
6 changed files with 1310 additions and 612 deletions
0
tests/web/plugins/v1/private/__init__.py
Normal file
0
tests/web/plugins/v1/private/__init__.py
Normal file
13
tests/web/plugins/v1/private/test_commons.py
Normal file
13
tests/web/plugins/v1/private/test_commons.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import json
|
||||
|
||||
from bumper.models import RETURN_API_SUCCESS
|
||||
|
||||
|
||||
async def test_getAreas(webserver_client):
|
||||
resp = await webserver_client.get(
|
||||
"/v1/private/us/en/dev_1234/ios/1/0/0/common/getAreas"
|
||||
)
|
||||
assert resp.status == 200
|
||||
text = await resp.text()
|
||||
jsonresp = json.loads(text)
|
||||
assert jsonresp["code"] == RETURN_API_SUCCESS
|
||||
Loading…
Add table
Add a link
Reference in a new issue