feat: test nanosp

This commit is contained in:
Coline
2022-06-23 10:32:41 +02:00
parent e069e2c2f1
commit 1ae8042d09
7 changed files with 152 additions and 146 deletions

View File

@@ -10,6 +10,9 @@ UINT64_MAX: int = 18446744073709551615
UINT32_MAX: int = 4294967295
UINT16_MAX: int = 65535
# Association tableau si écran nanos ou nanox
PATH_IMG = {"nanos": "nanos", "nanox": "nanox", "nanosp": "nanox"}
def save_screenshot(cmd, path: str):
screenshot = cmd.client.get_screenshot()
img = Image.open(io.BytesIO(screenshot))