add image for bots in ecovacs home

add endpoint for /api/pim/file/get so an image is displayed for bots in the ecovacs home app
This commit is contained in:
Brian Martin 2019-12-27 11:51:31 -05:00
parent 3aefbe2fd8
commit 18f3a807f1
4 changed files with 20 additions and 0 deletions

View file

@ -497,6 +497,11 @@ async def test_getProductIotMap(aiohttp_client):
assert jsonresp["code"] == bumper.RETURN_API_SUCCESS
# Test getPimFile
resp = await client.get("/api/pim/file/get/123")
assert resp.status == 200
async def test_getUsersAPI(aiohttp_client):
remove_existing_db()
bumper.db = "tests/tmp.db" # Set db location for testing
@ -906,3 +911,5 @@ async def test_dim_devmanager(aiohttp_client):
test_resp = json.loads(text)
assert test_resp["ret"] == "fail"