Skip to content

Commit a629598

Browse files
committed
resturcture test dir
1 parent a77adb4 commit a629598

File tree

14 files changed

+12
-7
lines changed

14 files changed

+12
-7
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,5 @@ jobs:
7676
LIVEKIT_API_SECRET: ${{ secrets.LIVEKIT_API_SECRET }}
7777
run: |
7878
uv pip install rtc-wheel/*.whl ./livekit-api ./livekit-protocol
79-
uv run pytest . --ignore=livekit-rtc/rust-sdks
79+
uv run pytest tests/
8080

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ convention = "google"
6161

6262

6363
[tool.pytest.ini_options]
64+
testpaths = ["tests"]
6465
asyncio_mode = "auto"
6566
asyncio_default_fixture_loop_scope = "function"
6667
addopts = ["--import-mode=importlib", "--ignore=examples"]
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@
44

55
from livekit.rtc import AudioProcessingModule, AudioFrame
66

7+
# Test fixture directory
8+
FIXTURES_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "fixtures")
9+
710

811
def test_audio_processing():
912
sample_rate = 48000
1013
num_channels = 1
1114
frames_per_chunk = sample_rate // 100
1215

13-
current_dir = os.path.dirname(os.path.abspath(__file__))
14-
capture_wav = os.path.join(current_dir, "test_echo_capture.wav")
15-
render_wav = os.path.join(current_dir, "test_echo_render.wav")
16-
output_wav = os.path.join(current_dir, "test_processed.wav")
16+
capture_wav = os.path.join(FIXTURES_DIR, "test_echo_capture.wav")
17+
render_wav = os.path.join(FIXTURES_DIR, "test_echo_render.wav")
18+
output_wav = os.path.join(FIXTURES_DIR, "test_processed.wav")
1719

1820
# Initialize APM with echo cancellation enabled
1921
apm = AudioProcessingModule(

0 commit comments

Comments
 (0)