Skip to content

Commit

Permalink
Update lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef-Friedrich committed Apr 12, 2024
1 parent ad9b847 commit 5d72ab2
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 73 deletions.
122 changes: 61 additions & 61 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 15 additions & 12 deletions tests/_test_gi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,22 @@

from __future__ import annotations

from gi.repository.Gio import BusType, DBusProxy, DBusProxyFlags
from time import sleep

proxy = DBusProxy.new_for_bus_sync(
BusType.SESSION,
DBusProxyFlags.DO_NOT_LOAD_PROPERTIES,
None,
"org.freedesktop.systemd1",
"/org/freedesktop/systemd1/unit/update_2dmotd_2etimer",
"org.freedesktop.DBus.Properties",
None,
)
from gi.repository.Gio import BusType, DBusProxy, DBusProxyFlags

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

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

print(proxy.Get("(ss)", "org.freedesktop.systemd1.Timer", "NextElapseUSecMonotonic")) # type: ignore
while True:
proxy = DBusProxy.new_for_bus_sync(
BusType.SESSION,
DBusProxyFlags.DO_NOT_LOAD_PROPERTIES,
None,
"org.freedesktop.systemd1",
"/org/freedesktop/systemd1/unit/example_2dtimer_2etimer",
"org.freedesktop.DBus.Properties",
None,
)
print(proxy.Get("(ss)", "org.freedesktop.systemd1.Timer", "NextElapseUSecRealtime")) # type: ignore
sleep(10)

0 comments on commit 5d72ab2

Please sign in to comment.