Skip to content

Commit ae36f41

Browse files
committed
ISSUE #1836: Address PR Feedback
* Make method name align with parameters/ui
1 parent 0c9a753 commit ae36f41

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

jira/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@ def copy_dashboard(
12931293

12941294
@cloud
12951295
@experimental
1296-
def update_dashboard_automatic_refresh_seconds(
1296+
def update_dashboard_automatic_refresh_minutes(
12971297
self, id: str, minutes: int
12981298
) -> Response:
12991299
# NOTE(jpavlav): The payload expects milliseconds, we are doing a conversion

tests/resources/test_dashboard.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -196,16 +196,16 @@ def test_dashboard_gadgets(self):
196196
reason="Functionality only available on Jira Cloud",
197197
)
198198
@allow_on_cloud
199-
def test_update_dashboard_automatic_refresh_seconds(self):
199+
def test_update_dashboard_automatic_refresh_minutes(self):
200200
dashboard = self.jira.create_dashboard(
201201
name=rndstr(), share_permissions=[{"type": "authenticated"}]
202202
)
203203
self.dashboards_to_delete.append(dashboard)
204-
response = self.jira.update_dashboard_automatic_refresh_seconds(
204+
response = self.jira.update_dashboard_automatic_refresh_minutes(
205205
dashboard.id, 10
206206
)
207207
self.assertEqual(response.status_code, 204)
208-
response = self.jira.update_dashboard_automatic_refresh_seconds(dashboard.id, 0)
208+
response = self.jira.update_dashboard_automatic_refresh_minutes(dashboard.id, 0)
209209
self.assertEqual(response.status_code, 204)
210210

211211
@pytest.mark.skipif(

0 commit comments

Comments
 (0)