File: tests-fix-invocation-of-AddUser.patch

package info (click to toggle)
accountsservice 22.08.8-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,116 kB
  • sloc: ansic: 8,076; xml: 1,186; python: 1,122; sh: 78; makefile: 20; sed: 16
file content (27 lines) | stat: -rw-r--r-- 1,115 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon, 4 Apr 2022 13:06:07 +1000
Subject: tests: fix invocation of AddUser

AddUser is a DBus method with a signature so we need to provide all
required arguments, we can't rely on python defaults. This worked
before dbusmock commit f8709a9 because these methods were never really
looked at.

Origin: upstream, 23.0, commit:https://gitlab.freedesktop.org/accountsservice/accountsservice/-/commit/c588aea0
---
 tests/dbusmock/accounts_service.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/dbusmock/accounts_service.py b/tests/dbusmock/accounts_service.py
index 7016ef8..969bf60 100644
--- a/tests/dbusmock/accounts_service.py
+++ b/tests/dbusmock/accounts_service.py
@@ -171,7 +171,7 @@ def CreateUser(self, name, fullname, account_type):
     self.users_auto_uids += 1
 
     return self.AddUser(self.users_auto_uids, name, DEFAULT_USER_PASSWORD, {
-        'RealName': fullname, 'AccountType': account_type})
+        'RealName': fullname, 'AccountType': account_type}, {})
 
 
 @dbus.service.method(MAIN_IFACE, in_signature='xb')