python-dbusmock 0.34.3__tar.gz → 0.35.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/.github/workflows/pages.yml +19 -15
- {python_dbusmock-0.34.3/python_dbusmock.egg-info → python_dbusmock-0.35.0}/PKG-INFO +3 -2
- python_dbusmock-0.35.0/dbusmock/_version.py +1 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/templates/modemmanager.py +14 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/doc/conf.py +1 -1
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0/python_dbusmock.egg-info}/PKG-INFO +3 -2
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/run-centos +1 -1
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/run-debian +1 -2
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/run-fedora +1 -1
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/run-ubuntu +1 -2
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/test_modemmanager.py +1 -0
- python_dbusmock-0.34.3/dbusmock/_version.py +0 -1
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/.fmf/version +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/.github/release.eloquent.yml +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/.github/workflows/release.yml +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/.github/workflows/tests.yml +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/.gitignore +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/.pre-commit-config.yaml +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/COPYING +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/NEWS +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/README.md +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/__init__.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/__main__.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/mockobject.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/pytest_fixtures.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/templates/SKELETON +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/templates/__init__.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/templates/bluez5-obex.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/templates/bluez5.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/templates/gnome_screensaver.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/templates/gsd_rfkill.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/templates/iio-sensors-proxy.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/templates/logind.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/templates/low_memory_monitor.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/templates/networkmanager.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/templates/notification_daemon.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/templates/ofono.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/templates/polkitd.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/templates/power_profiles_daemon.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/templates/systemd.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/templates/timedated.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/templates/upower.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/templates/upower_power_profiles_daemon.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/templates/urfkill.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/testcase.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/doc/index.rst +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/packaging/python-dbusmock.spec +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/packit.yaml +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/plans/all.fmf +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/pyproject.toml +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/python_dbusmock.egg-info/SOURCES.txt +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/python_dbusmock.egg-info/dependency_links.txt +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/python_dbusmock.egg-info/requires.txt +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/python_dbusmock.egg-info/top_level.txt +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/setup.cfg +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/setup.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/__init__.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/conftest.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/main.fmf +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/run +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/test_api.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/test_api_pytest.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/test_bluez5.py +1 -1
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/test_cli.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/test_code.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/test_gnome_screensaver.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/test_gsd_rfkill.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/test_iio_sensors_proxy.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/test_logind.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/test_low_memory_monitor.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/test_networkmanager.py +1 -1
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/test_notification_daemon.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/test_ofono.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/test_polkitd.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/test_power_profiles_daemon.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/test_systemd.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/test_timedated.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/test_upower.py +0 -0
- {python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/tests/test_urfkill.py +0 -0
|
@@ -7,22 +7,16 @@ on:
|
|
|
7
7
|
# Allow running this workflow manually from the Actions tab
|
|
8
8
|
workflow_dispatch:
|
|
9
9
|
|
|
10
|
-
permissions:
|
|
11
|
-
contents: read
|
|
12
|
-
pages: write
|
|
13
|
-
id-token: write
|
|
14
|
-
|
|
15
10
|
# Allow only one concurrent deployment
|
|
16
11
|
concurrency:
|
|
17
12
|
group: "pages"
|
|
18
13
|
cancel-in-progress: false
|
|
19
14
|
|
|
20
15
|
jobs:
|
|
21
|
-
|
|
22
|
-
runs-on: ubuntu-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
url: ${{ steps.deployment.outputs.page_url }}
|
|
16
|
+
build:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
permissions:
|
|
19
|
+
contents: read
|
|
26
20
|
|
|
27
21
|
steps:
|
|
28
22
|
- uses: actions/checkout@v4
|
|
@@ -39,14 +33,24 @@ jobs:
|
|
|
39
33
|
- name: Move output to target directory
|
|
40
34
|
run: mv doc/html public_html/
|
|
41
35
|
|
|
42
|
-
- name: Setup Pages
|
|
43
|
-
uses: actions/configure-pages@v3
|
|
44
|
-
|
|
45
36
|
- name: Upload pages artifact
|
|
46
|
-
|
|
37
|
+
id: deployment
|
|
38
|
+
uses: actions/upload-pages-artifact@v3
|
|
47
39
|
with:
|
|
48
40
|
path: public_html/
|
|
49
41
|
|
|
42
|
+
deploy:
|
|
43
|
+
needs: build
|
|
44
|
+
runs-on: ubuntu-latest
|
|
45
|
+
permissions:
|
|
46
|
+
contents: read
|
|
47
|
+
pages: write
|
|
48
|
+
id-token: write
|
|
49
|
+
environment:
|
|
50
|
+
name: github-pages
|
|
51
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
52
|
+
|
|
53
|
+
steps:
|
|
50
54
|
- name: Deploy to GitHub Pages
|
|
51
55
|
id: deployment
|
|
52
|
-
uses: actions/deploy-pages@
|
|
56
|
+
uses: actions/deploy-pages@v4
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: python-dbusmock
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.35.0
|
|
4
4
|
Summary: Mock D-Bus objects
|
|
5
5
|
Home-page: https://github.com/martinpitt/python-dbusmock
|
|
6
6
|
Download-URL: https://pypi.python.org/pypi/python-dbusmock/
|
|
@@ -189,6 +189,7 @@ Description-Content-Type: text/markdown
|
|
|
189
189
|
License-File: COPYING
|
|
190
190
|
Requires-Dist: dbus-python
|
|
191
191
|
Dynamic: download-url
|
|
192
|
+
Dynamic: license-file
|
|
192
193
|
|
|
193
194
|

|
|
194
195
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.35.0"
|
|
@@ -151,6 +151,17 @@ def deleteCbm(self, cbm_path):
|
|
|
151
151
|
)
|
|
152
152
|
|
|
153
153
|
|
|
154
|
+
def setChannels(_self, channels):
|
|
155
|
+
modem_obj = mockobject.objects[SIMPLE_MODEM_PATH]
|
|
156
|
+
|
|
157
|
+
modem_obj.UpdateProperties(
|
|
158
|
+
MODEM_CELL_BROADCAST_IFACE,
|
|
159
|
+
{
|
|
160
|
+
"Channels": dbus.Array(channels),
|
|
161
|
+
},
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
|
|
154
165
|
@dbus.service.method(MOCK_IFACE, in_signature="", out_signature="ss")
|
|
155
166
|
def AddSimpleModem(self):
|
|
156
167
|
"""Convenience method to add a simple Modem object
|
|
@@ -189,17 +200,20 @@ def AddSimpleModem(self):
|
|
|
189
200
|
modem_3gpp_props = {
|
|
190
201
|
"Imei": dbus.String("doesnotmatter"),
|
|
191
202
|
"OperatorName": dbus.String("TheOperator"),
|
|
203
|
+
"OperatorCode": dbus.String("00101"),
|
|
192
204
|
"Pco": dbus.Array([], signature="(ubay)"),
|
|
193
205
|
}
|
|
194
206
|
modem = mockobject.objects[modem_path]
|
|
195
207
|
modem.AddProperties(MODEM_3GPP_IFACE, modem_3gpp_props)
|
|
196
208
|
|
|
197
209
|
modem_cell_broadcast_props = {
|
|
210
|
+
"Channels": dbus.Array([], signature="(uu)"),
|
|
198
211
|
"CellBroadcasts": dbus.Array([], signature="o"),
|
|
199
212
|
}
|
|
200
213
|
modem_cell_broadcast_methods = [
|
|
201
214
|
("List", "", "ao", listCbm),
|
|
202
215
|
("Delete", "o", "", deleteCbm),
|
|
216
|
+
("SetChannels", "a(uu)", "", setChannels),
|
|
203
217
|
]
|
|
204
218
|
modem.AddProperties(MODEM_CELL_BROADCAST_IFACE, modem_cell_broadcast_props)
|
|
205
219
|
modem.AddMethods(MODEM_CELL_BROADCAST_IFACE, modem_cell_broadcast_methods)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: python-dbusmock
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.35.0
|
|
4
4
|
Summary: Mock D-Bus objects
|
|
5
5
|
Home-page: https://github.com/martinpitt/python-dbusmock
|
|
6
6
|
Download-URL: https://pypi.python.org/pypi/python-dbusmock/
|
|
@@ -189,6 +189,7 @@ Description-Content-Type: text/markdown
|
|
|
189
189
|
License-File: COPYING
|
|
190
190
|
Requires-Dist: dbus-python
|
|
191
191
|
Dynamic: download-url
|
|
192
|
+
Dynamic: license-file
|
|
192
193
|
|
|
193
194
|

|
|
194
195
|
|
|
@@ -3,7 +3,7 @@ set -eux
|
|
|
3
3
|
# install build dependencies
|
|
4
4
|
dnf -y install python3-setuptools python3 python3-gobject-base \
|
|
5
5
|
python3-dbus dbus-x11 util-linux \
|
|
6
|
-
upower NetworkManager bluez libnotify polkit
|
|
6
|
+
upower NetworkManager ModemManager bluez libnotify polkit
|
|
7
7
|
|
|
8
8
|
if ! grep -q :el /etc/os-release; then
|
|
9
9
|
dnf -y install power-profiles-daemon iio-sensor-proxy python3-pytest
|
|
@@ -14,8 +14,7 @@ eatmydata apt-get -y --purge dist-upgrade
|
|
|
14
14
|
eatmydata apt-get install --no-install-recommends -y git \
|
|
15
15
|
python3-all python3-setuptools python3-setuptools-scm python3-build python3-venv \
|
|
16
16
|
python3-dbus python3-pytest python3-gi gir1.2-glib-2.0 \
|
|
17
|
-
dbus libnotify-bin upower network-manager bluez ofono ofono-scripts power-profiles-daemon
|
|
18
|
-
modemmanager
|
|
17
|
+
dbus libnotify-bin upower network-manager bluez ofono ofono-scripts power-profiles-daemon
|
|
19
18
|
|
|
20
19
|
# systemd's tools otherwise fail on "not been booted with systemd"
|
|
21
20
|
mkdir -p /run/systemd/system
|
|
@@ -3,7 +3,7 @@ set -eux
|
|
|
3
3
|
# install build dependencies
|
|
4
4
|
dnf -y install python3-setuptools python3 python3-gobject-base \
|
|
5
5
|
python3-dbus dbus-x11 util-linux \
|
|
6
|
-
upower NetworkManager bluez libnotify polkit
|
|
6
|
+
upower NetworkManager ModemManager bluez libnotify polkit
|
|
7
7
|
|
|
8
8
|
if ! grep -q :el /etc/os-release; then
|
|
9
9
|
dnf -y install power-profiles-daemon iio-sensor-proxy python3-pytest
|
|
@@ -14,8 +14,7 @@ eatmydata apt-get -y --purge dist-upgrade
|
|
|
14
14
|
eatmydata apt-get install --no-install-recommends -y git \
|
|
15
15
|
python3-all python3-setuptools python3-setuptools-scm python3-build python3-venv \
|
|
16
16
|
python3-dbus python3-pytest python3-gi gir1.2-glib-2.0 \
|
|
17
|
-
dbus libnotify-bin upower network-manager bluez ofono ofono-scripts power-profiles-daemon
|
|
18
|
-
modemmanager
|
|
17
|
+
dbus libnotify-bin upower network-manager bluez ofono ofono-scripts power-profiles-daemon
|
|
19
18
|
|
|
20
19
|
# systemd's tools otherwise fail on "not been booted with systemd"
|
|
21
20
|
mkdir -p /run/systemd/system
|
|
@@ -108,6 +108,7 @@ class TestModemManagerModemMmcli(TestModemManagerMmcliBase):
|
|
|
108
108
|
" | current: allowed: 4g; preferred: 4g",
|
|
109
109
|
" -----------------------------",
|
|
110
110
|
" 3GPP | imei: doesnotmatter",
|
|
111
|
+
" | operator id: 00101",
|
|
111
112
|
" | operator name: TheOperator",
|
|
112
113
|
" | registration: idle",
|
|
113
114
|
" -----------------------------",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.34.3"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/templates/power_profiles_daemon.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/dbusmock/templates/upower_power_profiles_daemon.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_dbusmock-0.34.3 → python_dbusmock-0.35.0}/python_dbusmock.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -25,9 +25,9 @@ from pathlib import Path
|
|
|
25
25
|
import dbus
|
|
26
26
|
import dbus.mainloop.glib
|
|
27
27
|
from gi.repository import GLib
|
|
28
|
+
from packaging.version import Version
|
|
28
29
|
|
|
29
30
|
import dbusmock
|
|
30
|
-
from packaging.version import Version
|
|
31
31
|
|
|
32
32
|
tracemalloc.start(25)
|
|
33
33
|
dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -21,6 +21,7 @@ import unittest
|
|
|
21
21
|
import dbus
|
|
22
22
|
import dbus.mainloop.glib
|
|
23
23
|
from gi.repository import GLib
|
|
24
|
+
from packaging.version import Version
|
|
24
25
|
|
|
25
26
|
import dbusmock
|
|
26
27
|
from dbusmock.templates.networkmanager import (
|
|
@@ -35,7 +36,6 @@ from dbusmock.templates.networkmanager import (
|
|
|
35
36
|
NMConnectivityState,
|
|
36
37
|
NMState,
|
|
37
38
|
)
|
|
38
|
-
from packaging.version import Version
|
|
39
39
|
|
|
40
40
|
tracemalloc.start(25)
|
|
41
41
|
dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|