From b04d5cba2a9c14e18a296687feefa2e67751c4d2 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Fri, 23 May 2025 22:56:21 -0700 Subject: [PATCH] test: cleanup redundant test --- .../enterprise/test_enterprise_routes.py | 42 ------------------- 1 file changed, 42 deletions(-) delete mode 100644 tests/litellm/enterprise/test_enterprise_routes.py diff --git a/tests/litellm/enterprise/test_enterprise_routes.py b/tests/litellm/enterprise/test_enterprise_routes.py deleted file mode 100644 index dd260de740..0000000000 --- a/tests/litellm/enterprise/test_enterprise_routes.py +++ /dev/null @@ -1,42 +0,0 @@ -import json -import os -import sys -import unittest.mock as mock - -import pytest -from fastapi.testclient import TestClient - -sys.path.insert( - 0, os.path.abspath("../../..") -) # Adds the parent directory to the system path - -from enterprise.litellm_enterprise.proxy.enterprise_routes import router - - -@pytest.fixture -def client(): - return TestClient(router) - - -# def test_robots_when_blocked(client): -# """Test get_robots returns block instructions when _should_block_robots returns True""" -# with mock.patch( -# "litellm_enterprise.proxy.enterprise_routes._should_block_robots", -# return_value=True, -# ): -# response = client.get("/robots.txt") -# print("got response", response) -# print("got response text", response.text) -# print("got response headers", response.headers) -# assert response.status_code == 200 -# assert response.text == "User-agent: *\nDisallow: /" - - -# def test_robots_when_not_blocked(client): -# """Test get_robots returns 404 when _should_block_robots returns False""" -# with mock.patch( -# "litellm_enterprise.proxy.enterprise_routes._should_block_robots", -# return_value=False, -# ): -# response = client.get("/robots.txt") -# assert response.status_code == 404