Added initial cluster setup.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s

This commit is contained in:
2025-06-17 16:50:54 -04:00
parent 2066084c13
commit f73d091dc2
5 changed files with 70 additions and 1 deletions

View File

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