Skip to content

Commit

Permalink
Remove print statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang committed Aug 10, 2024
1 parent d644ee2 commit 3da260a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tests-unit/server/routes/internal_routes_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

@pytest.fixture
def internal_routes():
print("Creating InternalRoutes instance")
return InternalRoutes()

@pytest.fixture
Expand Down Expand Up @@ -81,26 +80,16 @@ def test_get_app_reuse(internal_routes):

@pytest.mark.asyncio
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()

print("Attempting to send GET request to /files")
try:
resp = await client.get('/files')
print(f"Response received: status {resp.status}")
except Exception as e:
print(f"Exception occurred during GET request: {e}")
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"

print("Test completed successfully")

@pytest.mark.asyncio
async def test_file_service_initialization():
with patch('api_server.routes.internal.internal_routes.FileService') as MockFileService:
Expand Down

0 comments on commit 3da260a

Please sign in to comment.