Ran black and pylint on files.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
This commit is contained in:
parent
f73d091dc2
commit
7d89f6c7ad
@ -3,7 +3,8 @@
|
||||
from release_tests.support.mttserver import MTTServer
|
||||
from release_tests.support.translate import Translate
|
||||
|
||||
class Cluster():
|
||||
|
||||
class Cluster:
|
||||
"""cluster of MoreThanText."""
|
||||
|
||||
def __init__(self, num=2):
|
||||
|
||||
@ -25,7 +25,7 @@ class MTTServer:
|
||||
async def start(self):
|
||||
"""Starts the server."""
|
||||
self.server = await create_subprocess_exec(*self.cmd)
|
||||
# delays the return untul the serverr is responding.
|
||||
# delays the return untul the serverr is responding.
|
||||
with socket(AF_INET, SOCK_STREAM) as soc:
|
||||
while soc.connect_ex((ADDR, self.port)) != 0:
|
||||
continue
|
||||
|
||||
@ -4,6 +4,7 @@ from unittest import IsolatedAsyncioTestCase
|
||||
from aiohttp import ClientSession
|
||||
from release_tests.support.cluster import Cluster
|
||||
|
||||
|
||||
class ClusterTC(IsolatedAsyncioTestCase):
|
||||
"""Test for the MoreThanText cluster."""
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ from release_tests.support import ADDR, get_port
|
||||
class Translate:
|
||||
"""Creates a translation mock for release testing."""
|
||||
|
||||
def __init__(self, url="/", replies=[]):
|
||||
def __init__(self, url="/", replies=None):
|
||||
"""Initialize"""
|
||||
|
||||
if not replies:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user