Skip to content

Commit 673e481

Browse files
committed
changed list function name to all
1 parent 1b0a2de commit 673e481

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

auth0/management/self_service_profiles.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def _url(self, profile_id: str | None = None) -> str:
5252
return f"{url}/{profile_id}"
5353
return url
5454

55-
def list(
55+
def all(
5656
self,
5757
page: int = 0,
5858
per_page: int = 25,

auth0/test/management/test_self_service_profiles.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ def test_init_with_optionals(self):
1414
self.assertEqual(telemetry_header, None)
1515

1616
@mock.patch("auth0.management.self_service_profiles.RestClient")
17-
def test_list(self, mock_rc):
17+
def test_all(self, mock_rc):
1818
mock_instance = mock_rc.return_value
1919

2020
s = SelfServiceProfiles(domain="domain", token="jwttoken")
21-
s.list()
21+
s.all()
2222

2323
mock_instance.get.assert_called_with(
2424
"https://domain/api/v2/self-service-profiles",
2525
params={"page": 0, "per_page": 25, "include_totals": "true"},
2626
)
2727

28-
s.list(page=1, per_page=50, include_totals=False)
28+
s.all(page=1, per_page=50, include_totals=False)
2929

3030
mock_instance.get.assert_called_with(
3131
"https://domain/api/v2/self-service-profiles",

0 commit comments

Comments
 (0)