python-dbusmock
python-dbusmock copied to clipboard
python-dbusmock: mock D-Bus objects for tests
Draft for now, I want to keep this open to track the packaging/distro bugs which prevent this. With a simple `packit srpm` and `rpmbuild -rb python-dbusmock-0.28*.src.rpm` in current Fedora 36...
It may be used to quickly debug interfaces Allowing to use something like `python3 -m dbusmock -t upower -c d-feet`
I am currently working on adding testing to g-c-c and would also like to streamline the code for g-s-d. For this, I worked on the two classes in these commits,...
Note that this is an issue with dbusmock *and* the underlying `dbus.service.signal`. But since it's dbusmock that's the immediate consumer of my code, let's file a bug here :smile: I...
As used and implemented in upower. As python-dbusmock uses the GLib mainloop in a number of places, it might be useful to add this helper to python-dbusmock.
A lot of the code in python-dbusmock assumes that the developer will want to create a fake bus, along with fake services to specifically run a test case. This makes...
Bluez are adding more dbus API's. The gatt api is documented at: http://git.kernel.org/cgit/bluetooth/bluez.git/tree/doc/gatt-api.txt
Bluez are adding more dbus API's. The advertising api is documented at: http://git.kernel.org/cgit/bluetooth/bluez.git/tree/doc/advertising-api.txt
Looking at the code, and based on experiments, it does not look like dbusmock currently supports mocking pre-existing signals. It supports EmitSignals, but though I lack the appropriate terminology, it...
For secured wireless connections, there could be a check of the psk and a device state change if it fails.