From f0c806ca12623c8feb8c88324a2bdad47634bb3b Mon Sep 17 00:00:00 2001 From: Tao Peng Date: Thu, 12 Dec 2024 14:49:57 -0800 Subject: [PATCH] fix imports in tests --- tests/cli/camm_parser.py | 3 ++- tests/cli/gpmf_parser.py | 2 +- tests/cli/simple_mp4_builder.py | 9 ++++----- tests/unit/test_camm_parser.py | 8 ++------ tests/unit/test_simple_mp4_builder.py | 4 +--- 5 files changed, 10 insertions(+), 16 deletions(-) diff --git a/tests/cli/camm_parser.py b/tests/cli/camm_parser.py index 92221480..461c33d9 100644 --- a/tests/cli/camm_parser.py +++ b/tests/cli/camm_parser.py @@ -6,7 +6,8 @@ import gpxpy.gpx from mapillary_tools import utils -from mapillary_tools.geotag import camm_parser, utils as geotag_utils +from mapillary_tools.camm import camm_parser +from mapillary_tools.geotag import utils as geotag_utils def _convert(path: pathlib.Path): diff --git a/tests/cli/gpmf_parser.py b/tests/cli/gpmf_parser.py index 713388fb..f5641d2a 100644 --- a/tests/cli/gpmf_parser.py +++ b/tests/cli/gpmf_parser.py @@ -11,8 +11,8 @@ import mapillary_tools.geotag.gpmf_parser as gpmf_parser import mapillary_tools.geotag.gps_filter as gps_filter -from mapillary_tools.mp4 import mp4_sample_parser import mapillary_tools.utils as utils +from mapillary_tools.mp4 import mp4_sample_parser def _convert_points_to_gpx_track_segment( diff --git a/tests/cli/simple_mp4_builder.py b/tests/cli/simple_mp4_builder.py index 90435e71..e239f9e4 100644 --- a/tests/cli/simple_mp4_builder.py +++ b/tests/cli/simple_mp4_builder.py @@ -1,11 +1,10 @@ import argparse from pathlib import Path -from mapillary_tools.geotag import ( - camm_builder, - geotag_videos_from_video, - simple_mp4_builder as builder, -) +from mapillary_tools.camm import camm_builder + +from mapillary_tools.geotag import geotag_videos_from_video +from mapillary_tools.mp4 import simple_mp4_builder as builder def _parse_args(): diff --git a/tests/unit/test_camm_parser.py b/tests/unit/test_camm_parser.py index 9e14d3f9..af2ff845 100644 --- a/tests/unit/test_camm_parser.py +++ b/tests/unit/test_camm_parser.py @@ -4,12 +4,8 @@ from pathlib import Path from mapillary_tools import geo, types -from mapillary_tools.camm import ( - camm_builder, - camm_parser, -) -from mapillary_tools.mp4 import simple_mp4_builder -from mapillary_tools.mp4 import construct_mp4_parser as cparser +from mapillary_tools.camm import camm_builder, camm_parser +from mapillary_tools.mp4 import construct_mp4_parser as cparser, simple_mp4_builder def test_filter_points_by_edit_list(): diff --git a/tests/unit/test_simple_mp4_builder.py b/tests/unit/test_simple_mp4_builder.py index 87731c29..5c274dd0 100644 --- a/tests/unit/test_simple_mp4_builder.py +++ b/tests/unit/test_simple_mp4_builder.py @@ -1,12 +1,10 @@ import io import typing as T -from mapillary_tools.mp4 import ( - simple_mp4_builder as builder, -) from mapillary_tools.mp4 import ( construct_mp4_parser as cparser, mp4_sample_parser as sample_parser, + simple_mp4_builder as builder, simple_mp4_parser as sparser, )