FAI-CIVL / FAI-Airscore

AirScore - online paragliding / hanggliding GAP-based scoring software.
https://airscore.cc/
GNU General Public License v3.0
13 stars 17 forks source link

warning recieved during testing #214

Closed kuaka closed 3 years ago

kuaka commented 3 years ago

`tests/test_fsdb.py::test_fsdb_import /app/airscore/core/pilot/participant.py:150: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead. if live and live.isdigit():

-- Docs: https://docs.pytest.org/en/stable/warnings.html `

biuti commented 3 years ago

corrected with https://github.com/FAI-CIVL/FAI-Airscore/commit/f4c3860da717b028548487ca76a91b97388ff8c0 I also updated other warning for future deprecation (https://github.com/FAI-CIVL/FAI-Airscore/commit/7457a32215f4ecb1d85e4b74a6e49133243b2e63). I saw there are some that should be updated in igc_lib, maybe they already did it?

kuaka commented 3 years ago

I saw there are some that should be updated in igc_lib, maybe they already did it? I don't believe so but you can check here last commit was 11 months ago. You can create a PR if you would like.