mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Tests: Removed taskd group features from test framework
This commit is contained in:
parent
b9699bb93e
commit
2949a7e86a
2 changed files with 7 additions and 13 deletions
|
@ -110,9 +110,8 @@ class Taskd(object):
|
|||
# Make sure TASKDDATA points to the temporary folder
|
||||
self.env["TASKDDATA"] = self.datadir
|
||||
|
||||
def create_user(self, user=None, group=None, org=None):
|
||||
"""Create a user/group in the server and return the user
|
||||
credentials to use in a taskw client.
|
||||
def create_user(self, user=None, org=None):
|
||||
"""Create a user in the server and return the user credentials to use in a taskw client.
|
||||
"""
|
||||
if user is None:
|
||||
# Create a unique user ID
|
||||
|
@ -122,20 +121,16 @@ class Taskd(object):
|
|||
# Increment the user_id
|
||||
self.usercount += 1
|
||||
|
||||
if group is None:
|
||||
group = "default_group"
|
||||
|
||||
if org is None:
|
||||
org = "default_org"
|
||||
|
||||
self._add_entity("org", org, ignore_exists=True)
|
||||
self._add_entity("group", org, group, ignore_exists=True)
|
||||
userkey = self._add_entity("user", org, user)
|
||||
|
||||
return user, group, org, userkey
|
||||
return user, org, userkey
|
||||
|
||||
def _add_entity(self, keyword, org, value=None, ignore_exists=False):
|
||||
"""Add an organization, group or user to the current server
|
||||
"""Add an organization or user to the current server
|
||||
|
||||
If a user creation is requested, the user unique ID is returned
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue