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,9 +1,7 @@
|
||||
"""
|
||||
Test module for gitlab "google chat" formatter.
|
||||
|
||||
"""
|
||||
"""Test module for gitlab "google chat" formatter."""
|
||||
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
|
||||
import httpx
|
||||
import nio
|
||||
@@ -22,7 +20,7 @@ class GitlabGchatFormatterTest(unittest.IsolatedAsyncioTestCase):
|
||||
await client.login(MATRIX_PW)
|
||||
room = await client.room_create()
|
||||
|
||||
with open("tests/example_gitlab_gchat.json") as f:
|
||||
with Path("tests/example_gitlab_gchat.json").open() as f:
|
||||
example_gitlab_gchat_request = f.read()
|
||||
self.assertEqual(
|
||||
httpx.post(
|
||||
|
||||
Reference in New Issue
Block a user