Final notes [2]

This commit is contained in:
mirai
2026-01-02 23:35:20 +03:00
parent 0756aab53f
commit 8b58bf4db3
4 changed files with 6 additions and 11 deletions
+3 -3
View File
@@ -19,7 +19,7 @@ from cmd_chat.server.routes import register_routes
@pytest.fixture
def app():
name = f"test-{uuid.uuid4().hex[:8]}"
app = Sanic(name)
Extend(app)
@@ -32,10 +32,10 @@ def app():
register_routes(app)
TestManager(app)
return app
@pytest.fixture
def test_client(app):
return app.test_client
return app.test_client