Skip to content

Commit 9fef49a

Browse files
fix: update test script paths after reorganization
- Update quick_test.sh to reference basic_usage.py - Update run_tests.sh to reference new file locations - Scripts now work correctly from examples/ directory - Add proper directory change to handle relative paths
1 parent 46faf38 commit 9fef49a

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

examples/quick_test.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/bash
2-
source venv/bin/activate
2+
# 快速测试脚本 - 验证基本功能
3+
cd "$(dirname "$0")"
4+
source ../venv/bin/activate 2>/dev/null || echo "提示: 建议创建虚拟环境"
35
pip install pytest pytest-cov requests pyyaml aiohttp --quiet
4-
python test_connection.py
6+
python basic_usage.py

examples/run_tests.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/bin/bash
2-
# 测试脚本
2+
# 完整测试脚本
3+
cd "$(dirname "$0")"
34

45
# 激活虚拟环境
5-
source venv/bin/activate
6+
source ../venv/bin/activate 2>/dev/null || echo "提示: 建议创建虚拟环境"
67

78
echo "==============================================="
89
echo "安装测试依赖..."
@@ -13,12 +14,14 @@ echo ""
1314
echo "==============================================="
1415
echo "测试 1: 基本连接测试"
1516
echo "==============================================="
16-
python test_connection.py
17+
python basic_usage.py
1718

1819
echo ""
1920
echo "==============================================="
2021
echo "测试 2: 异步客户端测试"
2122
echo "==============================================="
23+
python async_usage.py
24+
echo "==============================================="
2225
python << 'PYEOF'
2326
import asyncio
2427
from easysearch import AsyncEasysearch

0 commit comments

Comments
 (0)