Added initial cluster setup.
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:
@@ -7,9 +7,12 @@ from release_tests.support import ADDR, get_port
|
||||
class Translate:
|
||||
"""Creates a translation mock for release testing."""
|
||||
|
||||
def __init__(self, url="/", replies=["Hello"]):
|
||||
def __init__(self, url="/", replies=[]):
|
||||
"""Initialize"""
|
||||
|
||||
if not replies:
|
||||
replies = ["hello."]
|
||||
|
||||
async def reply(_):
|
||||
"""response to return"""
|
||||
nonlocal replies
|
||||
@@ -33,3 +36,7 @@ class Translate:
|
||||
await self.runner.setup()
|
||||
site = web.TCPSite(self.runner, ADDR, self.port)
|
||||
await site.start()
|
||||
|
||||
async def stop(self):
|
||||
"""Stops the application."""
|
||||
await self.runner.cleanup()
|
||||
|
||||
Reference in New Issue
Block a user