Got the release servers running.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s

This commit is contained in:
2025-06-16 12:32:20 -04:00
parent f6f8f0f205
commit 2066084c13
4 changed files with 55 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
"""tests for MoreThanText servers."""
from unittest import IsolatedAsyncioTestCase
from aiohttp import ClientSession
from release_tests.support import ADDR
from release_tests.support.mttserver import MTTServer
class MTTServerTC(IsolatedAsyncioTestCase):
"""Testcases for controling MoreThanText release servers."""
async def test_defaukt_start_up(self):
"""Test default start up."""
mtt = MTTServer()
await mtt.start()
url = f"http://{ADDR}:{mtt.port}"
async with ClientSession() as session:
async with session.get(url) as resp:
text = await resp.text()
self.assertEqual(resp.status, 200, text)
self.assertEqual(mtt.baseurl, url)