Skip to content

Commit

Permalink
fix imports in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ptpt committed Dec 12, 2024
1 parent 6504798 commit f0c806c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 16 deletions.
3 changes: 2 additions & 1 deletion tests/cli/camm_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/gpmf_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
9 changes: 4 additions & 5 deletions tests/cli/simple_mp4_builder.py
Original file line number Diff line number Diff line change
@@ -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():
Expand Down
8 changes: 2 additions & 6 deletions tests/unit/test_camm_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
4 changes: 1 addition & 3 deletions tests/unit/test_simple_mp4_builder.py
Original file line number Diff line number Diff line change
@@ -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,
)

Expand Down

0 comments on commit f0c806c

Please sign in to comment.