Skip to content

Commit 6d9a373

Browse files
committed
fix: Adjust the unit tests
1 parent 6294ad6 commit 6d9a373

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_dashboard.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ def test_get_dashboard_json_successful(self):
4646
test_model: Model = Model(template_path, "database", "postgresql", "v13")
4747
test_dashboard: Dashboard = Dashboard(test_model)
4848
dashboard = test_dashboard.get_dashboard_json(
49-
{"app_name": "test", "prometheus_name": "test_name"}
49+
{"app_name": "test", "prometheus_name": "test_name-postgresql"}
5050
)
5151

5252
self.assertEqual("Performance metrics for Postgres", dashboard["description"])
5353
self.assertEqual(
5454
'label_values(up{job="test_name-postgresql"},instance)',
5555
dashboard["templating"]["list"][0]["definition"],
5656
)
57-
self.assertEqual("test", dashboard["templating"]["list"][1]["current"]["text"])
57+
self.assertEqual("Test Postgresql", dashboard["title"])
5858

5959
def test_get_dashboard_json_no_config_template_error(self):
6060
template_path: str = f"{os.path.dirname(os.getcwd())}{os.sep}dashboard"

0 commit comments

Comments
 (0)