@@ -1452,7 +1452,7 @@ def test_list_members(client: GGClient):
1452
1452
1453
1453
result = client .list_members ()
1454
1454
1455
- assert isinstance (result , CursorPaginatedResponse ), result . content
1455
+ assert isinstance (result , CursorPaginatedResponse ), result
1456
1456
1457
1457
1458
1458
@my_vcr .use_cassette ("test_list_members_parameters.yaml" , ignore_localhost = False )
@@ -1466,7 +1466,7 @@ def test_search_member(client: GGClient):
1466
1466
1467
1467
result = client .list_members (MembersParameters (access_level = AccessLevel .MANAGER ))
1468
1468
1469
- assert isinstance (result , CursorPaginatedResponse ), result . content
1469
+ assert isinstance (result , CursorPaginatedResponse ), result
1470
1470
assert all (member .access_level == AccessLevel .MANAGER for member in result .data )
1471
1471
1472
1472
@@ -1482,7 +1482,7 @@ def test_update_member(client: GGClient):
1482
1482
UpdateMember (id = 10 , access_level = AccessLevel .MEMBER , active = False )
1483
1483
)
1484
1484
1485
- assert isinstance (result , Member ), result . content
1485
+ assert isinstance (result , Member ), result
1486
1486
1487
1487
assert not result .active
1488
1488
assert result .access_level == AccessLevel .MEMBER
@@ -1498,7 +1498,7 @@ def test_delete_member(client: GGClient):
1498
1498
1499
1499
result = client .delete_member (DeleteMember (id = 11 ))
1500
1500
1501
- assert result is None , result . content
1501
+ assert result is None , result
1502
1502
1503
1503
1504
1504
@my_vcr .use_cassette ("test_create_team.yaml" , ignore_localhost = False )
@@ -1511,7 +1511,7 @@ def test_create_team(client: GGClient):
1511
1511
1512
1512
result = client .create_team (CreateTeam (name = "team1" ))
1513
1513
1514
- assert isinstance (result , Team ), result . content
1514
+ assert isinstance (result , Team ), result
1515
1515
1516
1516
1517
1517
@my_vcr .use_cassette ("test_get_team.yaml" , ignore_localhost = False )
@@ -1524,7 +1524,7 @@ def test_get_team(client: GGClient):
1524
1524
1525
1525
result = client .get_team (8 )
1526
1526
1527
- assert isinstance (result , Team ), result . content
1527
+ assert isinstance (result , Team ), result
1528
1528
1529
1529
1530
1530
@my_vcr .use_cassette ("test_update_team.yaml" , ignore_localhost = False )
@@ -1539,7 +1539,7 @@ def test_update_team(client: GGClient):
1539
1539
UpdateTeam (id = 8 , name = "team1" , description = "New description" )
1540
1540
)
1541
1541
1542
- assert isinstance (result , Team ), result . content
1542
+ assert isinstance (result , Team ), result
1543
1543
1544
1544
assert result .name == "team1"
1545
1545
assert result .description == "New description"
@@ -1555,7 +1555,7 @@ def test_list_teams(client: GGClient):
1555
1555
1556
1556
result = client .list_teams ()
1557
1557
1558
- assert isinstance (result , CursorPaginatedResponse ), result . content
1558
+ assert isinstance (result , CursorPaginatedResponse ), result
1559
1559
assert isinstance (result .data [0 ], Team )
1560
1560
1561
1561
@@ -1570,7 +1570,7 @@ def test_global_team(client: GGClient):
1570
1570
1571
1571
result = client .list_teams (parameters = TeamsParameter (is_global = True ))
1572
1572
1573
- assert isinstance (result , CursorPaginatedResponse ), result . content
1573
+ assert isinstance (result , CursorPaginatedResponse ), result
1574
1574
1575
1575
assert all (team .is_global for team in result .data )
1576
1576
@@ -1605,7 +1605,7 @@ def test_create_team_invitation(client: GGClient):
1605
1605
),
1606
1606
)
1607
1607
1608
- assert isinstance (result , TeamInvitation ), result . content
1608
+ assert isinstance (result , TeamInvitation ), result
1609
1609
1610
1610
1611
1611
@my_vcr .use_cassette ("test_list_team_invitations.yaml" , ignore_localhost = False )
@@ -1618,7 +1618,7 @@ def test_list_team_invitations(client: GGClient):
1618
1618
1619
1619
result = client .list_team_invitations (9 )
1620
1620
1621
- assert isinstance (result , CursorPaginatedResponse ), result . content
1621
+ assert isinstance (result , CursorPaginatedResponse ), result
1622
1622
assert isinstance (result .data [0 ], TeamInvitation )
1623
1623
1624
1624
@@ -1636,7 +1636,7 @@ def test_search_team_invitations(client: GGClient):
1636
1636
parameters = TeamInvitationParameter (incident_permission = IncidentPermission .VIEW ),
1637
1637
)
1638
1638
1639
- assert isinstance (result , CursorPaginatedResponse ), result . content
1639
+ assert isinstance (result , CursorPaginatedResponse ), result
1640
1640
assert all (
1641
1641
invitation .incident_permission == "can_view" for invitation in result .data
1642
1642
)
@@ -1665,7 +1665,7 @@ def test_list_team_members(client: GGClient):
1665
1665
1666
1666
result = client .list_team_members (9 )
1667
1667
1668
- assert isinstance (result , CursorPaginatedResponse ), result . content
1668
+ assert isinstance (result , CursorPaginatedResponse ), result
1669
1669
assert isinstance (result .data [0 ], TeamMember )
1670
1670
1671
1671
@@ -1682,7 +1682,7 @@ def test_search_team_members(client: GGClient):
1682
1682
9 , parameters = TeamMemberParameter (is_team_leader = True )
1683
1683
)
1684
1684
1685
- assert isinstance (result , CursorPaginatedResponse ), result . content
1685
+ assert isinstance (result , CursorPaginatedResponse ), result
1686
1686
assert all (member .is_team_leader for member in result .data )
1687
1687
1688
1688
@@ -1698,7 +1698,7 @@ def test_create_team_member(client: GGClient):
1698
1698
CreateTeamMember (12 , False , IncidentPermission .VIEW ),
1699
1699
)
1700
1700
1701
- assert isinstance (result , TeamMember ), result . content
1701
+ assert isinstance (result , TeamMember ), result
1702
1702
1703
1703
assert result .incident_permission == IncidentPermission .VIEW
1704
1704
assert not result .is_team_leader
@@ -1718,7 +1718,7 @@ def test_create_team_member_without_mail(client: GGClient):
1718
1718
CreateTeamMemberParameter (send_email = False ),
1719
1719
)
1720
1720
1721
- assert isinstance (result , TeamMember ), result . content
1721
+ assert isinstance (result , TeamMember ), result
1722
1722
1723
1723
1724
1724
@my_vcr .use_cassette ("test_delete_team_member.yaml" , ignore_localhost = False )
@@ -1743,7 +1743,7 @@ def test_list_sources(client: GGClient):
1743
1743
"""
1744
1744
1745
1745
result = client .list_sources ()
1746
- assert isinstance (result , CursorPaginatedResponse ), result . content
1746
+ assert isinstance (result , CursorPaginatedResponse ), result
1747
1747
assert isinstance (result .data [0 ], Source )
1748
1748
1749
1749
@@ -1758,7 +1758,7 @@ def test_search_sources(client: GGClient):
1758
1758
1759
1759
result = client .list_sources (parameters = SourceParameters (type = "azure_devops" ))
1760
1760
1761
- assert isinstance (result , CursorPaginatedResponse ), result . content
1761
+ assert isinstance (result , CursorPaginatedResponse ), result
1762
1762
assert all (source .type == "azure_devops" for source in result .data )
1763
1763
1764
1764
@@ -1771,7 +1771,7 @@ def test_list_team_sources(client: GGClient):
1771
1771
"""
1772
1772
1773
1773
result = client .list_teams_sources (9 )
1774
- assert isinstance (result , CursorPaginatedResponse ), result . content
1774
+ assert isinstance (result , CursorPaginatedResponse ), result
1775
1775
assert isinstance (result .data [0 ], Source )
1776
1776
1777
1777
@@ -1786,7 +1786,7 @@ def test_search_team_sources(client: GGClient):
1786
1786
1787
1787
result = client .list_teams_sources (9 , TeamSourceParameters (type = "azure_devops" ))
1788
1788
1789
- assert isinstance (result , CursorPaginatedResponse ), result . content
1789
+ assert isinstance (result , CursorPaginatedResponse ), result
1790
1790
assert all (source .type == "azure_devops" for source in result .data )
1791
1791
1792
1792
@@ -1839,7 +1839,7 @@ def test_list_invitations(client: GGClient):
1839
1839
"""
1840
1840
1841
1841
result = client .list_invitations ()
1842
- assert isinstance (result , CursorPaginatedResponse ), result . content
1842
+ assert isinstance (result , CursorPaginatedResponse ), result
1843
1843
assert isinstance (result .data [0 ], Invitation )
1844
1844
1845
1845
@@ -1856,7 +1856,7 @@ def test_send_invitation(client: GGClient):
1856
1856
CreateInvitationParameter (send_email = False ),
1857
1857
)
1858
1858
1859
- assert isinstance (result , Invitation ), result . content
1859
+ assert isinstance (result , Invitation ), result
1860
1860
1861
1861
assert result .email == "owl@example.com"
1862
1862
assert result .access_level == AccessLevel .MEMBER
0 commit comments