{"id":50796924,"url":"https://github.com/pv/pytest-bluezenv","last_synced_at":"2026-06-12T15:02:23.362Z","repository":{"id":356145260,"uuid":"1231197422","full_name":"pv/pytest-bluezenv","owner":"pv","description":"Testing BlueZ and kernel using multiple virtual machine environments","archived":false,"fork":false,"pushed_at":"2026-06-07T16:55:08.000Z","size":3847,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-07T18:26:15.332Z","etag":null,"topics":["bluetooth","linux","python","testing"],"latest_commit_sha":null,"homepage":"https://pv.github.io/pytest-bluezenv/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pv.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-06T18:17:43.000Z","updated_at":"2026-06-07T16:54:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/pv/pytest-bluezenv","commit_stats":null,"previous_names":["pv/pytest-bluezenv"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/pv/pytest-bluezenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pv%2Fpytest-bluezenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pv%2Fpytest-bluezenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pv%2Fpytest-bluezenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pv%2Fpytest-bluezenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pv","download_url":"https://codeload.github.com/pv/pytest-bluezenv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pv%2Fpytest-bluezenv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34249561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bluetooth","linux","python","testing"],"created_at":"2026-06-12T15:02:22.212Z","updated_at":"2026-06-12T15:02:23.352Z","avatar_url":"https://github.com/pv.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"===============\npytest-bluezenv\n===============\n\n**pytest-bluezenv** Pytest plugin is used for functional testing of\nBlueZ and kernel using multiple virtual machine environments,\nconnected by real or virtual controllers.\n\n- Source code: https://github.com/pv/pytest-bluezenv/\n- Documentation: https://pv.github.io/pytest-bluezenv/\n- PyPi: https://pypi.org/project/pytest-bluezenv/\n\nExample\n-------\n\n.. code-block:: python\n\n   from pytest_bluezenv import host_config, Bluetoothd, Bluetoothctl\n\n   @host_config(\n       [Bluetoothd(), Bluetoothctl()],\n       [Bluetoothd(), Bluetoothctl()],\n   )\n   def test_bluetoothctl_pair(hosts):\n       host0, host1 = hosts\n\n       host0.bluetoothctl.send(\"scan on\\n\")\n       host0.bluetoothctl.expect(f\"Controller {host0.bdaddr.upper()} Discovering: yes\")\n\n       host1.bluetoothctl.send(\"pairable on\\n\")\n       host1.bluetoothctl.expect(\"Changing pairable on succeeded\")\n       host1.bluetoothctl.send(\"discoverable on\\n\")\n       host1.bluetoothctl.expect(f\"Controller {host1.bdaddr.upper()} Discoverable: yes\")\n\n       host0.bluetoothctl.expect(f\"Device {host1.bdaddr.upper()}\")\n       host0.bluetoothctl.send(f\"pair {host1.bdaddr}\\n\")\n\n       idx, m = host0.bluetoothctl.expect(r\"Confirm passkey (\\d+).*:\")\n       key = m[0].decode(\"utf-8\")\n\n       host1.bluetoothctl.expect(f\"Confirm passkey {key}\")\n\n       host0.bluetoothctl.send(\"yes\\n\")\n       host1.bluetoothctl.send(\"yes\\n\")\n\n       host0.bluetoothctl.expect(\"Pairing successful\")\n\nThe test declares a VM setup with two Qemu instances, where both hosts\nrun bluetoothd and start a bluetoothctl process.  The Qemu instances\nhave `btvirt` virtual BT controllers and can see each other.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpv%2Fpytest-bluezenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpv%2Fpytest-bluezenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpv%2Fpytest-bluezenv/lists"}