Skip to content

Commit

Permalink
WIP: try to fix issue with unit tests running in container.
Browse files Browse the repository at this point in the history
  • Loading branch information
jirihnidek committed Nov 3, 2023
1 parent a26529f commit d8ea2cb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/rhsmlib/dbus/test_register.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,13 @@ def setUp(self) -> None:
get_cmd_line_mock = get_cmd_line_patch.start()
get_cmd_line_mock.return_value = "unit-test sender"

pid_of_sender_patch = mock.patch(
"rhsmlib.dbus.server.pid_of_sender",
autospec=True,
)
pid_of_sender_mock = pid_of_sender_patch.start()
pid_of_sender_mock.return_value = 123456

dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)

def tearDown(self) -> None:
Expand Down

0 comments on commit d8ea2cb

Please sign in to comment.