Pytest plugin for exposing uiautomator2 Android devices as fixtures
Project description
pytest-u2device
Pytest plugin for exposing uiautomator2 Android devices as fixtures.
Install
uv add pytest-u2device
Usage
Without explicit devices, the plugin exposes a default d fixture:
def test_default_device(d):
assert d.device_info
Register named fixtures with --device NAME:SERIAL:
uv run pytest --device phone:emulator-5554 --device tablet:127.0.0.1:16384
def test_multi_device(phone, tablet):
assert phone.device_info
assert tablet.device_info
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytest_u2device-0.1.0.tar.gz
(5.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytest_u2device-0.1.0.tar.gz.
File metadata
- Download URL: pytest_u2device-0.1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
119f24dfecba4d2b916d49df5f2e5a18286b2118ec5c50bde91ed2201b2b6ae1
|
|
| MD5 |
8abc4e0acde9dfc093a322b23c4514bf
|
|
| BLAKE2b-256 |
72a702aa6ff70cfa53c9910a02ad5ff098bdc95933fe25a5a6feddc68814f942
|
File details
Details for the file pytest_u2device-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pytest_u2device-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc3130d890a132aa829a0c62f0345f1661e5ca4ba022d83ebcfcaea677116d64
|
|
| MD5 |
caa24e3aecbfbdabc9496f867f3511ec
|
|
| BLAKE2b-256 |
a40f5be176b86da500192d3782a34e89ea949c7c267a5d967bd910b0ce1086df
|