chore(api): remove unnecessary file

This commit is contained in:
QuantumGhost
2026-01-28 14:53:19 +08:00
parent c3b7b3ed0c
commit f3bd53bced
3 changed files with 0 additions and 229570 deletions

View File

@ -1,49 +0,0 @@
# from pathlib import Path
# import cchardet
# import chardet
# import pytest
# _TEST_DIR = Path(__file__).parent
# @pytest.fixture(scope="session")
# def test_data_small() -> bytes:
# with open(_TEST_DIR / "test-data.txt", "rb") as fin:
# b = fin.read()
# return b
# @pytest.fixture(scope="session")
# def test_data_large() -> bytes:
# with open(_TEST_DIR / "tiangolo-fastapi-8a5edab282632443.txt", "rb") as fin:
# b = fin.read()
# return b
# def test_chardet_detect(test_data_large):
# encoding = chardet.detect(test_data_large)
# assert encoding["encoding"] == "utf-8"
# def test_cchardet_detect(test_data_large):
# encoding = cchardet.detect(test_data_large)
# assert encoding["encoding"] == "utf-8"
# def test_benchmark_chardetect_small(benchmark, test_data_small):
# chardet.detect(test_data_small)
# def test_benchmark_chardetect_large(benchmark, test_data_large):
# chardet.detect(test_data_large)
# def test_benchmark_cchardet_small(benchmark, test_data_small):
# cchardet.detect(test_data_small)
# def test_benchmark_cchardet_large(benchmark, test_data_large):
# cchardet.detect(test_data_large)