Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_u2device-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

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

Hashes for pytest_u2device-0.1.0.tar.gz
Algorithm Hash digest
SHA256 119f24dfecba4d2b916d49df5f2e5a18286b2118ec5c50bde91ed2201b2b6ae1
MD5 8abc4e0acde9dfc093a322b23c4514bf
BLAKE2b-256 72a702aa6ff70cfa53c9910a02ad5ff098bdc95933fe25a5a6feddc68814f942

See more details on using hashes here.

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

Hashes for pytest_u2device-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc3130d890a132aa829a0c62f0345f1661e5ca4ba022d83ebcfcaea677116d64
MD5 caa24e3aecbfbdabc9496f867f3511ec
BLAKE2b-256 a40f5be176b86da500192d3782a34e89ea949c7c267a5d967bd910b0ce1086df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page