Working on tests

This commit is contained in:
Michael Hansen
2024-01-09 10:59:28 -06:00
parent f74071666a
commit 172a85846c
5 changed files with 134 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
"""Shared code for Wyoming satellite tests."""
from wyoming.info import Info, Attribution, Satellite
from wyoming.audio import AudioChunk
WYOMING_INFO = Info(
satellite=Satellite(
name="test satellite",
area="test area",
description="test description",
attribution=Attribution(name="", url=""),
installed=True,
)
)
AUDIO_CHUNK = AudioChunk(
rate=16000, width=2, channels=1, audio=bytes([255] * 960) # 30ms
)