44
55import pytest
66
7- _SKIP_TESTS = False
7+ _should_skip_typer_based_tests = False
88try :
99 from typer .testing import CliRunner
1010
1111 runner = CliRunner ()
1212 from fundamend .__main__ import app
1313except ImportError :
14- _SKIP_TESTS = True
14+ _should_skip_typer_based_tests = True
1515
1616
1717@pytest .fixture (scope = "function" )
1818def example_files_lesefassung (tmp_path : Path ) -> Iterator [Path ]:
19- if _SKIP_TESTS :
19+ if _should_skip_typer_based_tests :
2020 pytest .skip ("Seems like typer is not installed" )
2121 copied_files_path = tmp_path / "example_files"
2222 copied_files_path .mkdir (parents = True , exist_ok = True )
@@ -29,7 +29,7 @@ def example_files_lesefassung(tmp_path: Path) -> Iterator[Path]:
2929
3030@pytest .fixture (scope = "function" )
3131def example_files_konsulationsfassung_without_uebertragungsdatei (tmp_path : Path ) -> Iterator [Path ]:
32- if _SKIP_TESTS :
32+ if _should_skip_typer_based_tests :
3333 pytest .skip ("Seems like typer is not installed" )
3434 copied_files_path = tmp_path / "example_files"
3535 copied_files_path .mkdir (parents = True , exist_ok = True )
@@ -43,7 +43,7 @@ def example_files_konsulationsfassung_without_uebertragungsdatei(tmp_path: Path)
4343
4444@pytest .fixture (scope = "function" )
4545def example_files_fehlerkorrektur (tmp_path : Path ) -> Iterator [Path ]:
46- if _SKIP_TESTS :
46+ if _should_skip_typer_based_tests :
4747 pytest .skip ("Seems like typer is not installed" )
4848 copied_files_path = tmp_path / "example_files"
4949 copied_files_path .mkdir (parents = True , exist_ok = True )
@@ -55,7 +55,7 @@ def example_files_fehlerkorrektur(tmp_path: Path) -> Iterator[Path]:
5555
5656
5757def test_cli_single_file_mig (example_files_lesefassung : Path ) -> None :
58- if _SKIP_TESTS :
58+ if _should_skip_typer_based_tests :
5959 pytest .skip ("Seems like typer is not installed" )
6060 mig_path = example_files_lesefassung / "UTILTS_MIG_1.1c_Lesefassung_2023_12_12.xml"
6161
@@ -66,7 +66,7 @@ def test_cli_single_file_mig(example_files_lesefassung: Path) -> None:
6666
6767
6868def test_cli_single_file_ahb (example_files_konsulationsfassung_without_uebertragungsdatei : Path ) -> None :
69- if _SKIP_TESTS :
69+ if _should_skip_typer_based_tests :
7070 pytest .skip ("Seems like typer is not installed" )
7171 ahb_path = (
7272 example_files_konsulationsfassung_without_uebertragungsdatei
@@ -80,7 +80,7 @@ def test_cli_single_file_ahb(example_files_konsulationsfassung_without_uebertrag
8080
8181
8282def test_cli_directory (example_files_lesefassung : Path ) -> None :
83- if _SKIP_TESTS :
83+ if _should_skip_typer_based_tests :
8484 pytest .skip ("Seems like typer is not installed" )
8585 mig_path = example_files_lesefassung / "UTILTS_MIG_1.1c_Lesefassung_2023_12_12.xml"
8686 ahb_path = example_files_lesefassung / "UTILTS_AHB_1.1c_Lesefassung_2023_12_12_ZPbXedn.xml"
@@ -94,7 +94,7 @@ def test_cli_directory(example_files_lesefassung: Path) -> None:
9494
9595
9696def test_cli_directory_with_sanitize_compressed_splitted (example_files_fehlerkorrektur : Path , tmp_path : Path ) -> None :
97- if _SKIP_TESTS :
97+ if _should_skip_typer_based_tests :
9898 pytest .skip ("Seems like typer is not installed" )
9999 # mig_path = example_files_lesefassung / "UTILTS_MIG_1.1c_Lesefassung_2023_12_12.xml"
100100 # ahb_path = example_files_lesefassung / "UTILTS_AHB_1.1c_Lesefassung_2023_12_12_ZPbXedn.xml"
0 commit comments