Skip to content

Commit 76192df

Browse files
committed
dev: fix all test cases
1 parent f907f4d commit 76192df

File tree

5 files changed

+2565
-2548
lines changed

5 files changed

+2565
-2548
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ghostos_ws/
1616

1717
# Distribution / packaging
1818
.Python
19-
.python-version
19+
#.python-version
2020
build/
2121
develop-eggs/
2222
dist/

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ wss = ["websockets>=15.0.1"]
2020
redis = ["fakeredis>=2.32.1", "redis>=7.0.1"]
2121
audio = ["pulsectl>=24.12.0", "pyaudio>=0.2.14", "scipy>=1.15.3"]
2222

23-
# 所有测试性的依赖放一起
23+
# 所有测试性的依赖放一起. 注意, 由于 live2d-py 0.5.0 以上版本依赖 python 3.12, 所以需要设置本地 python
2424
contrib = [
2525
"litellm>=1.78.5",
2626
"live2d-py>=0.5.4,<0.6.0",

tests/speech/test_mock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ async def buffer_stream(_stream: SpeechStream, idx_: int):
1818
_stream.buffer(str(idx_))
1919
_stream.commit()
2020

21-
mock_speech = MockSpeech()
21+
mock_speech = MockSpeech(typing_sleep=0.0)
2222
for i in range(5):
2323
idx = i
2424
stream = mock_speech.new_stream(batch_id=str(idx))

0 commit comments

Comments
 (0)