mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-12 23:56:59 +08:00
Remove print statements.
This commit is contained in:
parent
9d67d9618d
commit
997f4192b2
@ -8,7 +8,6 @@ from folder_paths import models_dir, user_directory, output_directory
|
|||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def internal_routes():
|
def internal_routes():
|
||||||
print("Creating InternalRoutes instance")
|
|
||||||
return InternalRoutes()
|
return InternalRoutes()
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
@ -81,12 +80,7 @@ def test_get_app_reuse(internal_routes):
|
|||||||
|
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
async def test_routes_added_to_app(aiohttp_client_factory, internal_routes):
|
async def test_routes_added_to_app(aiohttp_client_factory, internal_routes):
|
||||||
print("Starting test_routes_added_to_app")
|
|
||||||
|
|
||||||
# Create the client
|
|
||||||
client = await aiohttp_client_factory()
|
client = await aiohttp_client_factory()
|
||||||
|
|
||||||
print("Attempting to send GET request to /files")
|
|
||||||
try:
|
try:
|
||||||
resp = await client.get('/files')
|
resp = await client.get('/files')
|
||||||
print(f"Response received: status {resp.status}")
|
print(f"Response received: status {resp.status}")
|
||||||
@ -94,13 +88,8 @@ async def test_routes_added_to_app(aiohttp_client_factory, internal_routes):
|
|||||||
print(f"Exception occurred during GET request: {e}")
|
print(f"Exception occurred during GET request: {e}")
|
||||||
raise
|
raise
|
||||||
|
|
||||||
# We're not checking the response content here, just that the route exists
|
|
||||||
# and returns a response (even if it's an error response)
|
|
||||||
print(f"Asserting response status is not 404")
|
|
||||||
assert resp.status != 404, "Route /files does not exist"
|
assert resp.status != 404, "Route /files does not exist"
|
||||||
|
|
||||||
print("Test completed successfully")
|
|
||||||
|
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
async def test_file_service_initialization():
|
async def test_file_service_initialization():
|
||||||
with patch('api_server.routes.internal.internal_routes.FileService') as MockFileService:
|
with patch('api_server.routes.internal.internal_routes.FileService') as MockFileService:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user