From c1f5749a0404445dc1f85e68c096d7f06c5aa11b Mon Sep 17 00:00:00 2001 From: Dugal Harris Date: Thu, 28 Mar 2024 15:15:37 +0200 Subject: [PATCH] rename tests to match similar ones in test_factory --- tests/test_cli.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index 31fb874..9913aee 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1100,6 +1100,8 @@ def test__frame_mult_camera( runner: CliRunner, ): """Test the _ortho backend with multiple camera ID interior & exterior parameters.""" + # note that this test, and those below, basically duplicate similarly named tests in + # test_factory src_files = [] for src_file_key in mult_ext_param_dict.keys(): src_file = tmp_path.joinpath(src_file_key).with_suffix(rgb_byte_src_file.suffix) @@ -1122,7 +1124,7 @@ def test__frame_mult_camera( assert len(ortho_files) == len(src_files) -def test__frame_single_no_camera( +def test__frame_single_camera( rgb_byte_src_file: Path, float_utm34n_dem_file: Path, pinhole_int_param_dict: dict, @@ -1152,7 +1154,7 @@ def test__frame_single_no_camera( assert len(ortho_files) == 1 -def test__frame_ext_param_not_found_error( +def test__frame_filename_not_found_error( rgb_byte_src_file: Path, float_utm34n_dem_file: Path, pinhole_int_param_dict: dict, @@ -1182,7 +1184,7 @@ def test__frame_ext_param_not_found_error( assert rgb_byte_src_file.name in str(ex.value) and 'exterior parameters' in str(ex.value) -def test__frame_mult_camera_unknown_camera_error( +def test__frame_camera_not_found_error( rgb_byte_src_file: Path, float_utm34n_dem_file: Path, mult_int_param_dict: dict,