From 44a9c8d2aa52f656b1a0884670d150714c3325f7 Mon Sep 17 00:00:00 2001 From: Junzi Sun Date: Fri, 30 Nov 2018 22:50:05 +0100 Subject: [PATCH] fix test for commb --- tests/test_commb.py | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/tests/test_commb.py b/tests/test_commb.py index c53187c..9043765 100644 --- a/tests/test_commb.py +++ b/tests/test_commb.py @@ -1,5 +1,5 @@ from pyModeS import bds, commb -from pyModeS import ehs, els # deprecated +# from pyModeS import ehs, els # deprecated def test_bds20_callsign(): assert bds.bds20.cs20("A000083E202CC371C31DE0AA1CCF") == 'KLM1017_' @@ -8,9 +8,6 @@ def test_bds20_callsign(): assert commb.cs20("A000083E202CC371C31DE0AA1CCF") == 'KLM1017_' assert commb.cs20("A0001993202422F2E37CE038738E") == 'IBK2873_' - assert els.cs20("A000083E202CC371C31DE0AA1CCF") == 'KLM1017_' - assert els.cs20("A0001993202422F2E37CE038738E") == 'IBK2873_' - def test_bds40_functions(): assert bds.bds40.alt40mcp("A000029C85E42F313000007047D3") == 3008 @@ -21,10 +18,6 @@ def test_bds40_functions(): assert commb.alt40fms("A000029C85E42F313000007047D3") == 3008 assert commb.p40baro("A000029C85E42F313000007047D3") == 1020.0 - assert ehs.alt40mcp("A000029C85E42F313000007047D3") == 3008 - assert ehs.alt40fms("A000029C85E42F313000007047D3") == 3008 - assert ehs.p40baro("A000029C85E42F313000007047D3") == 1020.0 - def test_bds50_functions(): assert bds.bds50.roll50("A000139381951536E024D4CCF6B5") == 2.1 @@ -41,13 +34,6 @@ def test_bds50_functions(): assert commb.rtrk50("A000139381951536E024D4CCF6B5") == 0.125 assert commb.tas50("A000139381951536E024D4CCF6B5") == 424 - assert ehs.roll50("A000139381951536E024D4CCF6B5") == 2.1 - assert ehs.roll50("A0001691FFD263377FFCE02B2BF9") == -0.4 # signed value - assert ehs.trk50("A000139381951536E024D4CCF6B5") == 114.258 - assert ehs.gs50("A000139381951536E024D4CCF6B5") == 438 - assert ehs.rtrk50("A000139381951536E024D4CCF6B5") == 0.125 - assert ehs.tas50("A000139381951536E024D4CCF6B5") == 424 - def test_bds60_functions(): assert bds.bds60.hdg60("A00004128F39F91A7E27C46ADC21") == 42.715 @@ -61,9 +47,3 @@ def test_bds60_functions(): assert commb.mach60("A00004128F39F91A7E27C46ADC21") == 0.42 assert commb.vr60baro("A00004128F39F91A7E27C46ADC21") == -1920 assert commb.vr60ins("A00004128F39F91A7E27C46ADC21") == -1920 - - assert ehs.hdg60("A00004128F39F91A7E27C46ADC21") == 42.715 - assert ehs.ias60("A00004128F39F91A7E27C46ADC21") == 252 - assert ehs.mach60("A00004128F39F91A7E27C46ADC21") == 0.42 - assert ehs.vr60baro("A00004128F39F91A7E27C46ADC21") == -1920 - assert ehs.vr60ins("A00004128F39F91A7E27C46ADC21") == -1920