mirror of
https://github.com/bsedin/matrix-webhook.git
synced 2026-04-09 11:25:40 +00:00
flake8, pydocstyle, pyupgrade → ruff
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
"""
|
||||
Test module for grafana formatter.
|
||||
"""Test module for grafana formatter.
|
||||
|
||||
ref https://grafana.com/docs/grafana/latest/alerting/old-alerting/notifications/#webhook
|
||||
"""
|
||||
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
|
||||
import httpx
|
||||
import nio
|
||||
@@ -23,7 +23,7 @@ class GrafanaFormatterTest(unittest.IsolatedAsyncioTestCase):
|
||||
await client.login(MATRIX_PW)
|
||||
room = await client.room_create()
|
||||
|
||||
with open("tests/example_grafana.json") as f:
|
||||
with Path("tests/example_grafana.json").open() as f:
|
||||
example_grafana_request = f.read()
|
||||
self.assertEqual(
|
||||
httpx.post(
|
||||
|
||||
Reference in New Issue
Block a user