|
| 1 | +"""Smoke tests for src/apprentice/cli/cli.py (auto-generated by pact adopt).""" |
| 2 | + |
| 3 | +import pytest |
| 4 | + |
| 5 | +def test_import_apprentice_cli_cli(): |
| 6 | + """Module imports without error.""" |
| 7 | + import importlib |
| 8 | + mod = importlib.import_module("apprentice.cli.cli") |
| 9 | + assert mod is not None |
| 10 | + |
| 11 | +def test_configure_logging_is_callable(): |
| 12 | + """Function configure_logging exists and is callable.""" |
| 13 | + import importlib |
| 14 | + mod = importlib.import_module("apprentice.cli.cli") |
| 15 | + fn = getattr(mod, "configure_logging", None) |
| 16 | + assert fn is not None, "'configure_logging' not found in apprentice.cli.cli" |
| 17 | + assert callable(fn) |
| 18 | + |
| 19 | +def test_parse_args_is_callable(): |
| 20 | + """Function parse_args exists and is callable.""" |
| 21 | + import importlib |
| 22 | + mod = importlib.import_module("apprentice.cli.cli") |
| 23 | + fn = getattr(mod, "parse_args", None) |
| 24 | + assert fn is not None, "'parse_args' not found in apprentice.cli.cli" |
| 25 | + assert callable(fn) |
| 26 | + |
| 27 | +def test_load_config_is_callable(): |
| 28 | + """Function load_config exists and is callable.""" |
| 29 | + import importlib |
| 30 | + mod = importlib.import_module("apprentice.cli.cli") |
| 31 | + fn = getattr(mod, "load_config", None) |
| 32 | + assert fn is not None, "'load_config' not found in apprentice.cli.cli" |
| 33 | + assert callable(fn) |
| 34 | + |
| 35 | +def test_resolve_input_is_callable(): |
| 36 | + """Function resolve_input exists and is callable.""" |
| 37 | + import importlib |
| 38 | + mod = importlib.import_module("apprentice.cli.cli") |
| 39 | + fn = getattr(mod, "resolve_input", None) |
| 40 | + assert fn is not None, "'resolve_input' not found in apprentice.cli.cli" |
| 41 | + assert callable(fn) |
| 42 | + |
| 43 | +def test_format_output_is_callable(): |
| 44 | + """Function format_output exists and is callable.""" |
| 45 | + import importlib |
| 46 | + mod = importlib.import_module("apprentice.cli.cli") |
| 47 | + fn = getattr(mod, "format_output", None) |
| 48 | + assert fn is not None, "'format_output' not found in apprentice.cli.cli" |
| 49 | + assert callable(fn) |
| 50 | + |
| 51 | +def test_execute_run_is_callable(): |
| 52 | + """Function execute_run exists and is callable.""" |
| 53 | + import importlib |
| 54 | + mod = importlib.import_module("apprentice.cli.cli") |
| 55 | + fn = getattr(mod, "execute_run", None) |
| 56 | + assert fn is not None, "'execute_run' not found in apprentice.cli.cli" |
| 57 | + assert callable(fn) |
| 58 | + |
| 59 | +def test_execute_status_is_callable(): |
| 60 | + """Function execute_status exists and is callable.""" |
| 61 | + import importlib |
| 62 | + mod = importlib.import_module("apprentice.cli.cli") |
| 63 | + fn = getattr(mod, "execute_status", None) |
| 64 | + assert fn is not None, "'execute_status' not found in apprentice.cli.cli" |
| 65 | + assert callable(fn) |
| 66 | + |
| 67 | +def test_execute_report_is_callable(): |
| 68 | + """Function execute_report exists and is callable.""" |
| 69 | + import importlib |
| 70 | + mod = importlib.import_module("apprentice.cli.cli") |
| 71 | + fn = getattr(mod, "execute_report", None) |
| 72 | + assert fn is not None, "'execute_report' not found in apprentice.cli.cli" |
| 73 | + assert callable(fn) |
| 74 | + |
| 75 | +def test_execute_pii_ingest_is_callable(): |
| 76 | + """Function execute_pii_ingest exists and is callable.""" |
| 77 | + import importlib |
| 78 | + mod = importlib.import_module("apprentice.cli.cli") |
| 79 | + fn = getattr(mod, "execute_pii_ingest", None) |
| 80 | + assert fn is not None, "'execute_pii_ingest' not found in apprentice.cli.cli" |
| 81 | + assert callable(fn) |
| 82 | + |
| 83 | +def test_execute_pii_evaluate_is_callable(): |
| 84 | + """Function execute_pii_evaluate exists and is callable.""" |
| 85 | + import importlib |
| 86 | + mod = importlib.import_module("apprentice.cli.cli") |
| 87 | + fn = getattr(mod, "execute_pii_evaluate", None) |
| 88 | + assert fn is not None, "'execute_pii_evaluate' not found in apprentice.cli.cli" |
| 89 | + assert callable(fn) |
| 90 | + |
| 91 | +def test_execute_ingest_is_callable(): |
| 92 | + """Function execute_ingest exists and is callable.""" |
| 93 | + import importlib |
| 94 | + mod = importlib.import_module("apprentice.cli.cli") |
| 95 | + fn = getattr(mod, "execute_ingest", None) |
| 96 | + assert fn is not None, "'execute_ingest' not found in apprentice.cli.cli" |
| 97 | + assert callable(fn) |
| 98 | + |
| 99 | +def test_main_is_callable(): |
| 100 | + """Function main exists and is callable.""" |
| 101 | + import importlib |
| 102 | + mod = importlib.import_module("apprentice.cli.cli") |
| 103 | + fn = getattr(mod, "main", None) |
| 104 | + assert fn is not None, "'main' not found in apprentice.cli.cli" |
| 105 | + assert callable(fn) |
0 commit comments