mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Allow operation.py to ignore TACAN rules
This commit is contained in:
@@ -24,6 +24,15 @@ def test_allocate_first_few_channels() -> None:
|
||||
assert chan3 == TacanChannel(32, TacanBand.X)
|
||||
|
||||
|
||||
def test_reserve_ignoring_rules() -> None:
|
||||
registry = TacanRegistry()
|
||||
with pytest.raises(TacanChannelForbiddenError):
|
||||
registry.reserve(TacanChannel(16, TacanBand.X), TacanUsage.TransmitReceive)
|
||||
registry.reserve(
|
||||
TacanChannel(16, TacanBand.X), TacanUsage.TransmitReceive, ignore_rules=True
|
||||
)
|
||||
|
||||
|
||||
def test_allocate_different_usages() -> None:
|
||||
"""Make sure unallocated channels for one use don't make channels unavailable for other usage"""
|
||||
registry = TacanRegistry()
|
||||
|
||||
Reference in New Issue
Block a user