fix tests

This commit is contained in:
Xavier Olive 2022-04-18 18:47:12 +02:00
parent 6e33ac0288
commit 06941bac2e
3 changed files with 4 additions and 3 deletions

View File

@ -41,7 +41,8 @@ jobs:
- name: Install with Cython - name: Install with Cython
run: | run: |
pip install -U cython pip install -U cython
pip install --force-reinstall . pip uninstall -y pymodes
pip install .
- name: Run tests (with Cython) - name: Run tests (with Cython)
run: | run: |

View File

@ -57,5 +57,5 @@ try:
setup(**dict(details, ext_modules=cythonize(extensions))) setup(**dict(details, ext_modules=cythonize(extensions)))
except: except ImportError:
setup(**details) setup(**details)

View File

@ -83,7 +83,7 @@ def test_adsb_velocity():
def test_adsb_emergency(): def test_adsb_emergency():
assert not adsb.is_emergency("8DA2C1B6E112B600000000760759") assert not adsb.is_emergency("8DA2C1B6E112B600000000760759")
assert adsb.emergency_state("8DA2C1B6E112B600000000760759") == 0 assert adsb.emergency_state("8DA2C1B6E112B600000000760759") == 0
assert adsb.emergency_squawk("8DA2C1B6E112B600000000760759") == "6615" assert adsb.emergency_squawk("8DA2C1B6E112B600000000760759") == "6513"
def test_adsb_target_state_status(): def test_adsb_target_state_status():