diff options
| author | Daniel Schadt <kingdread@gmx.de> | 2025-11-01 14:48:15 +0100 |
|---|---|---|
| committer | Daniel Schadt <kingdread@gmx.de> | 2025-11-01 14:48:15 +0100 |
| commit | 04f6e55ef9facf367a06839dfffd58230cf88d7f (patch) | |
| tree | 9e834bedc263e74efee84f4dad34a6d258377812 /tests/unit | |
| parent | a32babc70accef5121b1e588523663628d2dfdeb (diff) | |
| download | fietsboek-04f6e55ef9facf367a06839dfffd58230cf88d7f.tar.gz fietsboek-04f6e55ef9facf367a06839dfffd58230cf88d7f.tar.bz2 fietsboek-04f6e55ef9facf367a06839dfffd58230cf88d7f.zip | |
fix tests
With the values being computed ourselves, they differ a bit from the
previous gpxpy values. Therefore, we adjust the expected values in the
tests.
Diffstat (limited to 'tests/unit')
| -rw-r--r-- | tests/unit/test_util.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/unit/test_util.py b/tests/unit/test_util.py index 6dc8e7d..0ecfdb2 100644 --- a/tests/unit/test_util.py +++ b/tests/unit/test_util.py @@ -71,19 +71,6 @@ def test_guess_gpx_timezone(gpx_file, offset): assert timezone.utcoffset(None) == offset -@pytest.mark.parametrize('gpx_file', [ - 'Teasi_1.gpx.gz', - 'MyTourbook_1.gpx.gz', - 'Synthetic_WT2.gpx.gz', - 'Synthetic_BRouter_1.gpx.gz', -]) -def test_tour_metadata(gpx_file): - # Here we simply make sure that we do not crash the metadata extraction - # function. - gpx_data = load_gpx_asset(gpx_file) - assert util.tour_metadata(gpx_data) is not None - - @pytest.mark.parametrize('mps, kph', [(1, 3.6), (10, 36)]) def test_mps_to_kph(mps, kph): assert util.mps_to_kph(mps) == pytest.approx(kph, 0.1) |
