Skip to content

Commit

Permalink
Grouper: Add option for test stem #42
Browse files Browse the repository at this point in the history
  • Loading branch information
astrochun committed Sep 15, 2020
1 parent a5c64b0 commit 8e50cfd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions requiam/grouper_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def url(self, endpoint):
def get_group_list(self, group_type):
"""Retrieve list of groups in a Grouper stem"""

if group_type not in ['portal', 'quota', '']:
if group_type not in ['portal', 'quota', 'test', '']:
raise ValueError("Incorrect [group_type] input")

grouper_stem = figshare_stem(group_type, production=self.grouper_production)
Expand All @@ -51,7 +51,7 @@ def get_group_list(self, group_type):
def check_group_exists(self, group, group_type):
"""Check whether a Grouper group exists within a Grouper stem"""

if group_type not in ['portal', 'quota']:
if group_type not in ['portal', 'quota', 'test']:
raise ValueError("Incorrect [group_type] input")

result = self.get_group_list(group_type)
Expand All @@ -71,7 +71,7 @@ def add_group(self, group, group_type, description):

endpoint = self.url("")

if group_type not in ['portal', 'quota']:
if group_type not in ['portal', 'quota', 'test']:
raise ValueError("Incorrect [group_type] input")

grouper_name = figshare_group(group, group_type,
Expand Down

0 comments on commit 8e50cfd

Please sign in to comment.