How to write a functional test for a DBUS service written in Python?

前端 未结 6 1595
忘掉有多难
忘掉有多难 2021-01-02 01:16

(Title was: \"How to write a unit test for a DBUS service written in Python?\")

I\'ve started to write a DBUS service using dbus-python, but I\'m having trouble writ

6条回答
  •  粉色の甜心
    2021-01-02 01:54

    Check out python-dbusmock library.

    It hides the ugly subprocess logic behind your eyes, so you don't have to worry about it in your tests.

提交回复
热议问题