File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -22,3 +22,9 @@ def get_sources(self):
22
22
project_error = 'CMIX returned a non-200 response code while getting project sources'
23
23
project_response = self .client .api_get (project_endpoint , project_error )
24
24
return project_response
25
+
26
+ def get_groups (self ):
27
+ project_endpoint = 'projects/{}/groups' .format (self .project_id )
28
+ project_error = 'CMIX returned a non-200 response code while getting project groups'
29
+ project_response = self .client .api_get (project_endpoint , project_error )
30
+ return project_response
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ A Python client library for the [Dynata Cmix API](https://wiki2.criticalmix.net/
50
50
51
51
### CmixProject
52
52
53
+ get_groups()
53
54
get_project()
54
55
get_sources()
55
56
Original file line number Diff line number Diff line change @@ -48,3 +48,6 @@ def test_get_project(self):
48
48
49
49
def test_get_sources (self ):
50
50
self .helper_get ('get_sources' , '/{}/sources' .format (self .project_id ))
51
+
52
+ def test_get_groups (self ):
53
+ self .helper_get ('get_groups' , '/{}/groups' .format (self .project_id ))
You can’t perform that action at this time.
0 commit comments