21 lines
538 B
Python
21 lines
538 B
Python
import pytest
|
|
|
|
from galileo_rx.config import ReceiverConfig, load_config
|
|
|
|
|
|
def test_default_configuration_is_valid() -> None:
|
|
ReceiverConfig().validate()
|
|
|
|
|
|
def test_e1c_long_integration_requires_secondary_handling() -> None:
|
|
config = ReceiverConfig()
|
|
config.acquisition.coherent_integration_ms = 8.0
|
|
with pytest.raises(ValueError, match="secondary-code"):
|
|
config.validate()
|
|
|
|
|
|
def test_yaml_load() -> None:
|
|
config = load_config("configs/e1_default.yaml")
|
|
assert config.rf.sampling_frequency_hz == 16.368e6
|
|
|