refactor common

This commit is contained in:
Robert Resch 2022-03-06 21:24:46 +01:00
parent 26d8985b1a
commit 3dd905d3d5
6 changed files with 1310 additions and 612 deletions

View file

View 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