init
This commit is contained in:
76
pyproject.toml
Normal file
76
pyproject.toml
Normal file
@@ -0,0 +1,76 @@
|
||||
[project]
|
||||
name = "xiaomi-Phone-Test-Project-xiaomi"
|
||||
version = "0.3.1"
|
||||
description = "xiaomi"
|
||||
readme = "README.md"
|
||||
authors = [{ name = "liumin", email = "liumin@glrocy.com" }]
|
||||
requires-python = "==3.12.6"
|
||||
|
||||
dependencies = ["glrocky-sdk", "uvicorn>=0.34.2"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
minversion = "8.3.5"
|
||||
#addopts = "--no-summary --no-header -rfEX --strict-markers --capture=tee-sys "
|
||||
addopts = "--capture=tee-sys "
|
||||
testpaths = ["scenarios"]
|
||||
python_files = "tc_*.py"
|
||||
markers = []
|
||||
|
||||
[tool.pyright]
|
||||
venv = ".venv"
|
||||
venvPath = "."
|
||||
reportMissingTypeStubs = false
|
||||
reportUnknownMemberType = false
|
||||
[tool.uv.sources]
|
||||
#glrocky-sdk = { path = "../../packages/glrocky-sdk" }
|
||||
glrocky-sdk = { path = "./glrocky_sdk-0.4.3-py3-none-any.whl" }
|
||||
|
||||
[[tool.uv.index]]
|
||||
url = "https://mirrors.aliyun.com/pypi/simple/"
|
||||
default = true
|
||||
|
||||
[tool.glrocky]
|
||||
remote_url = "https://gitea.glrocky.cn/aitest-scripts/xiaomi.git"
|
||||
branch = "master"
|
||||
uuid = "157f58111-aaa9-4636-b476-20251201xiaomi002"
|
||||
|
||||
[tool.glrocky.tags]
|
||||
osName="android" #adb -s 513a205d shell "getprop ro.build.version.release"
|
||||
osVersion="16"
|
||||
brand="Xiaomi" #adb -s 513a205d shell "getprop ro.product.brand"
|
||||
model="2509FPN0BC" #adb -s 513a205d shell "getprop ro.product.model"
|
||||
manufacturer="Xiaomi" #adb -s 513a205d shell "getprop ro.product.manufacturer"
|
||||
|
||||
[tool.glrocky.commands]
|
||||
generateSchema = "uv run --reinstall-package glrocky-sdk pytest --co --generate-schema --continue-on-collection-errors"
|
||||
startTest = "uv run pytest"
|
||||
|
||||
[tool.glrocky.requirements]
|
||||
devices = [{ type = "phone", os = "android", count = 1 }]
|
||||
|
||||
[tool.glrocky.project_settings]
|
||||
screen-record-extra-commands = [
|
||||
"--window-x=1380",
|
||||
"--window-y=50",
|
||||
"--always-on-top",
|
||||
"--disable-screensaver",
|
||||
"--window-borderless",
|
||||
"-m",
|
||||
"600",
|
||||
"--video-codec",
|
||||
"h264",
|
||||
"--video-bit-rate",
|
||||
"5M",
|
||||
"--max-fps",
|
||||
"60",
|
||||
"--time-limit",
|
||||
"3600",
|
||||
"--print-fps",
|
||||
"--video-buffer",
|
||||
"100",
|
||||
"--no-audio-playback",
|
||||
"--no-audio",
|
||||
]
|
||||
|
||||
[dependency-groups]
|
||||
dev = ["ruff>=0.12.2"]
|
||||
Reference in New Issue
Block a user