@@ -72,10 +72,10 @@ def test_create_group(client: AtlanClient, group: CreateGroupResponse):
72
72
73
73
def test_retrieve_all_groups (client : AtlanClient , group : CreateGroupResponse ):
74
74
global _default_group_count
75
- groups = client .group .get_all () # type: ignore
76
- assert groups
77
- assert len (groups ) >= 1 # type: ignore
78
- for group1 in groups :
75
+ groups = client .group .get_all ()
76
+ assert groups . records
77
+ assert len (groups . records ) >= 1
78
+ for group1 in groups . records :
79
79
if group1 .is_default ():
80
80
_default_group_count += 1
81
81
@@ -299,10 +299,10 @@ def test_retrieve_admin_logs(
299
299
def test_get_all_with_limit (client : AtlanClient , group : CreateGroupResponse ):
300
300
limit = 2
301
301
groups = client .group .get_all (limit = limit )
302
- assert groups
303
- assert len (groups ) == limit # type: ignore
302
+ assert groups . records
303
+ assert len (groups . records ) == limit
304
304
305
- for group1 in groups :
305
+ for group1 in groups . records :
306
306
assert group1 .id
307
307
assert group1 .name
308
308
assert group1 .path is not None
@@ -313,9 +313,10 @@ def test_get_all_with_columns(client: AtlanClient, group: CreateGroupResponse):
313
313
groups = client .group .get_all (columns = columns )
314
314
315
315
assert groups
316
- assert len (groups ) >= 1 # type: ignore
316
+ assert groups .records
317
+ assert len (groups .records ) >= 1
317
318
318
- for group1 in groups :
319
+ for group1 in groups . records :
319
320
assert group1 .name
320
321
assert group1 .path is not None
321
322
assert group1 .attributes is None
@@ -326,9 +327,9 @@ def test_get_all_with_sorting(client: AtlanClient, group: CreateGroupResponse):
326
327
groups = client .group .get_all (sort = "name" )
327
328
328
329
assert groups
329
- assert len (groups ) >= 1 # type: ignore
330
+ assert len (groups . records ) >= 1 # type: ignore
330
331
331
- sorted_names = [group .name for group in groups if group .name is not None ]
332
+ sorted_names = [group .name for group in groups . records if group .name is not None ] # type: ignore
332
333
assert sorted_names == sorted (sorted_names )
333
334
334
335
@@ -340,11 +341,11 @@ def test_get_all_with_everything(client: AtlanClient, group: CreateGroupResponse
340
341
groups = client .group .get_all (limit = limit , columns = columns , sort = sort )
341
342
342
343
assert groups
343
- assert len (groups ) == limit # type: ignore
344
- sorted_names = [group .name for group in groups if group .name is not None ]
344
+ assert len (groups . records ) == limit # type: ignore
345
+ sorted_names = [group .name for group in groups . records if group .name is not None ] # type: ignore
345
346
assert sorted_names == sorted (sorted_names )
346
347
347
- for group1 in groups :
348
+ for group1 in groups . records : # type: ignore
348
349
assert group1 .name
349
350
assert group1 .path is not None
350
351
assert group1 .roles is None
0 commit comments