Skip to content

Commit 6740bba

Browse files
committed
fix: Adjust the linting issues
1 parent 1dfd126 commit 6740bba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

grafana_api/alerting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def create_or_update_alertmanager_alerts(
7070
None
7171
"""
7272

73-
if len(datasource_uid) != 0and alerts != list():
73+
if len(datasource_uid) != 0 and alerts != list():
7474
alerts_json_list: list = list()
7575

7676
for alert in alerts:
@@ -931,7 +931,7 @@ def test_backtest_rule(self, condition: str, data_query: list) -> dict:
931931
)
932932

933933
api_call: dict = Api(self.grafana_api_model).call_the_api(
934-
f"/api/v1/rule/backtest",
934+
"/api/v1/rule/backtest",
935935
RequestsMethods.POST,
936936
json.dumps(
937937
{

tests/unittests/test_alerting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ def test_test_backtest_rule_no_condition(self):
753753
alerting: Alerting = Alerting(grafana_api_model=model)
754754

755755
with self.assertRaises(ValueError):
756-
alerting.test_backtest_rule("", list())
756+
alerting.test_backtest_rule("", list())
757757

758758
@patch("grafana_api.api.Api.call_the_api")
759759
def test_test_recipient_rule_test_not_possible(self, call_the_api_mock):

0 commit comments

Comments
 (0)