Final notes [2]
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user