flake8, pydocstyle, pyupgrade → ruff

This commit is contained in:
Guilhem Saurel
2023-03-09 00:07:23 +01:00
parent a3555a6ff8
commit f90a21e4e6
16 changed files with 69 additions and 59 deletions

View File

@@ -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(