Skip to content

Commit 36b987a

Browse files
committed
fix method name [#20]
1 parent e9dd873 commit 36b987a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tests/test_pagination.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ class TestPagination(BunqSdkTestCase):
1515
_PAGINATION_COUNT_CUSTOM = 5
1616

1717
def test_get_url_params_count_only(self):
18-
pagination = self.create_pagination_with_all_properties_set()
18+
pagination = self._create_pagination_with_all_properties_set()
1919
url_params_count_only_expected = {
2020
client.Pagination.PARAM_COUNT: str(self._PAGINATION_COUNT_CUSTOM),
2121
}
2222

2323
self.assertEqual(url_params_count_only_expected,
2424
pagination.url_params_count_only)
2525

26-
def create_pagination_with_all_properties_set(self):
26+
def _create_pagination_with_all_properties_set(self):
2727
"""
2828
:rtype: Pagination
2929
"""
@@ -37,7 +37,7 @@ def create_pagination_with_all_properties_set(self):
3737
return pagination
3838

3939
def test_get_url_params_previous_page(self):
40-
pagination = self.create_pagination_with_all_properties_set()
40+
pagination = self._create_pagination_with_all_properties_set()
4141
url_params_previous_page_expected = {
4242
client.Pagination.PARAM_COUNT: str(self._PAGINATION_COUNT_CUSTOM),
4343
client.Pagination.PARAM_OLDER_ID:
@@ -49,7 +49,7 @@ def test_get_url_params_previous_page(self):
4949
pagination.url_params_previous_page)
5050

5151
def test_get_url_params_previous_page_no_count(self):
52-
pagination = self.create_pagination_with_all_properties_set()
52+
pagination = self._create_pagination_with_all_properties_set()
5353
pagination.count = None
5454
url_params_previous_page_expected = {
5555
client.Pagination.PARAM_OLDER_ID:
@@ -61,7 +61,7 @@ def test_get_url_params_previous_page_no_count(self):
6161
pagination.url_params_previous_page)
6262

6363
def test_get_url_params_next_page_newer(self):
64-
pagination = self.create_pagination_with_all_properties_set()
64+
pagination = self._create_pagination_with_all_properties_set()
6565
url_params_next_page_expected = {
6666
client.Pagination.PARAM_COUNT: str(self._PAGINATION_COUNT_CUSTOM),
6767
client.Pagination.PARAM_NEWER_ID:
@@ -73,7 +73,7 @@ def test_get_url_params_next_page_newer(self):
7373
pagination.url_params_next_page)
7474

7575
def test_get_url_params_next_page_newer_no_count(self):
76-
pagination = self.create_pagination_with_all_properties_set()
76+
pagination = self._create_pagination_with_all_properties_set()
7777
pagination.count = None
7878
url_params_next_page_expected = {
7979
client.Pagination.PARAM_NEWER_ID:
@@ -85,7 +85,7 @@ def test_get_url_params_next_page_newer_no_count(self):
8585
pagination.url_params_next_page)
8686

8787
def test_get_url_params_next_page_future(self):
88-
pagination = self.create_pagination_with_all_properties_set()
88+
pagination = self._create_pagination_with_all_properties_set()
8989
pagination.newer_id = None
9090
url_params_next_page_expected = {
9191
client.Pagination.PARAM_COUNT: str(self._PAGINATION_COUNT_CUSTOM),
@@ -98,7 +98,7 @@ def test_get_url_params_next_page_future(self):
9898
pagination.url_params_next_page)
9999

100100
def test_get_url_params_next_page_future_no_count(self):
101-
pagination = self.create_pagination_with_all_properties_set()
101+
pagination = self._create_pagination_with_all_properties_set()
102102
pagination.newer_id = None
103103
pagination.count = None
104104
url_params_next_page_expected = {
@@ -111,7 +111,7 @@ def test_get_url_params_next_page_future_no_count(self):
111111
pagination.url_params_next_page)
112112

113113
def test_get_url_params_prev_page_from_pagination_with_no_prev_page(self):
114-
pagination = self.create_pagination_with_all_properties_set()
114+
pagination = self._create_pagination_with_all_properties_set()
115115
pagination.older_id = None
116116

117117
def access_url_params_previous_page():
@@ -122,7 +122,7 @@ def access_url_params_previous_page():
122122
access_url_params_previous_page)
123123

124124
def test_get_url_params_next_page_from_pagination_with_no_next_page(self):
125-
pagination = self.create_pagination_with_all_properties_set()
125+
pagination = self._create_pagination_with_all_properties_set()
126126
pagination.newer_id = None
127127
pagination.future_id = None
128128

0 commit comments

Comments
 (0)