summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNelson Benítez León <nbenitezl@gmail.com>2023-04-24 20:25:23 -0400
committerNelson Benítez León <nbenitezl@gmail.com>2023-04-25 16:36:40 -0400
commit5a5883abe03ec2a4fab3fc97dd1f79ad33440c81 (patch)
tree22841160c726b36d37e255b119baae420b9c8dc6
parentea88bc6ab047117b989c624d6374396e06699b50 (diff)
downloadaccountsservice-5a5883abe03ec2a4fab3fc97dd1f79ad33440c81.tar.gz
Rename directory 'dbusmock' to 'mock_services'
so to avoid Python confusing it with the 'dbusmock' python module. Issue reported by Pierre Labastie. Closes #112
-rw-r--r--tests/mock_services/accounts_service.py (renamed from tests/dbusmock/accounts_service.py)0
-rw-r--r--tests/test-libaccountsservice.py4
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/dbusmock/accounts_service.py b/tests/mock_services/accounts_service.py
index 6f36efe..6f36efe 100644
--- a/tests/dbusmock/accounts_service.py
+++ b/tests/mock_services/accounts_service.py
diff --git a/tests/test-libaccountsservice.py b/tests/test-libaccountsservice.py
index 723ab51..f0261b1 100644
--- a/tests/test-libaccountsservice.py
+++ b/tests/test-libaccountsservice.py
@@ -39,7 +39,7 @@ class AccountsServiceTestBase(dbusmock.DBusTestCase):
super().setUp()
if not hasattr(self, '_mock'):
template = os.path.join(
- os.path.dirname(__file__), 'dbusmock/accounts_service.py')
+ os.path.dirname(__file__), 'mock_services/accounts_service.py')
(self._mock, self._mock_obj) = self.spawn_server_template(
template, {}, stdout=subprocess.PIPE)
self._manager = AccountsService.UserManager.get_default()
@@ -88,7 +88,7 @@ class TestAccountsServicePreExistingUser(AccountsServiceTestBase):
'''Test mocking AccountsService with pre-existing user'''
def setUp(self):
template = os.path.join(
- os.path.dirname(__file__), 'dbusmock/accounts_service.py')
+ os.path.dirname(__file__), 'mock_services/accounts_service.py')
(self._mock, self._mock_obj) = self.spawn_server_template(
template, {'users': { 2001: 'pizza' }}, stdout=subprocess.PIPE)
super().setUp()