File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66import json
77import sys
8- from enum import StrEnum
8+ import enum
99from pathlib import Path
1010from typing import Optional
1111
1616INFO_DIR = 'meson-info'
1717
1818
19- class InfoFileType (StrEnum ):
19+ class InfoFileType (enum . StrEnum ):
2020 buildoptions = 'buildoptions'
2121 compilers = 'compilers'
2222 dependencies = 'dependencies'
Original file line number Diff line number Diff line change 11# SPDX-License-Identifier: Apache-2.0
22# Copyright 2025 MOG Robotics OÜ
33
4- from enum import StrEnum
4+ import enum
55from pathlib import Path
66from unittest .mock import patch
77
88from collider .entrypoint import main as entrypoint
99
1010
11- class Subcommand (StrEnum ):
11+ class Subcommand (enum . StrEnum ):
1212 SETUP = 'setup'
1313 PACK = 'pack'
1414 PUSH = 'push'
Original file line number Diff line number Diff line change 66import os
77import shutil
88from pathlib import Path
9- import re
109
1110import pytest
1211
12+ from collider .file_model .Colliderfile import Colliderfile
1313from collider .utils .meson .info import InfoFileType , get_project_info
1414from collider .utils .packaging import get_archive_name
1515from test .common .common import Subcommand , run_subcommand
16- from collider .file_model .Colliderfile import Colliderfile
1716
1817
1918def test_execute_success (meson_project : Path , tmp_path : Path ) -> None :
Original file line number Diff line number Diff line change @@ -107,5 +107,5 @@ def test_load_missing(tmp_path: Path):
107107
108108def test_save_to_dir (tmp_path ):
109109 for file_model in get_file_models (strict_filenames = True , any_filenames = True ):
110- with pytest .raises (TypeError ) as exc_info :
110+ with pytest .raises (TypeError ):
111111 file_model ().save (tmp_path ), 'Save path should be a file, not a directory.'
You can’t perform that action at this time.
0 commit comments