Skip to content

Commit 5d72ab2

Browse files
Update lock file
1 parent ad9b847 commit 5d72ab2

File tree

2 files changed

+76
-73
lines changed

2 files changed

+76
-73
lines changed

poetry.lock

Lines changed: 61 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/_test_gi.py

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,22 @@
22

33
from __future__ import annotations
44

5-
from gi.repository.Gio import BusType, DBusProxy, DBusProxyFlags
5+
from time import sleep
66

7-
proxy = DBusProxy.new_for_bus_sync(
8-
BusType.SESSION,
9-
DBusProxyFlags.DO_NOT_LOAD_PROPERTIES,
10-
None,
11-
"org.freedesktop.systemd1",
12-
"/org/freedesktop/systemd1/unit/update_2dmotd_2etimer",
13-
"org.freedesktop.DBus.Properties",
14-
None,
15-
)
7+
from gi.repository.Gio import BusType, DBusProxy, DBusProxyFlags
168

9+
# print(proxy.GetAll("(ss)", "org.freedesktop.systemd1.Timer", "NextElapseUSecMonotonic")) # type: ignore
1710

18-
print(proxy.GetAll("(ss)", "org.freedesktop.systemd1.Timer", "NextElapseUSecMonotonic")) # type: ignore
1911

20-
print(proxy.Get("(ss)", "org.freedesktop.systemd1.Timer", "NextElapseUSecMonotonic")) # type: ignore
12+
while True:
13+
proxy = DBusProxy.new_for_bus_sync(
14+
BusType.SESSION,
15+
DBusProxyFlags.DO_NOT_LOAD_PROPERTIES,
16+
None,
17+
"org.freedesktop.systemd1",
18+
"/org/freedesktop/systemd1/unit/example_2dtimer_2etimer",
19+
"org.freedesktop.DBus.Properties",
20+
None,
21+
)
22+
print(proxy.Get("(ss)", "org.freedesktop.systemd1.Timer", "NextElapseUSecRealtime")) # type: ignore
23+
sleep(10)

0 commit comments

Comments
 (0)