Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-27 07:28:14

0001 """Tests for aid2e.cli module."""
0002 
0003 import pytest
0004 
0005 
0006 def test_cli_module_import():
0007     """Test that aid2e.cli module can be imported."""
0008     import aid2e.cli
0009     assert aid2e.cli is not None
0010 
0011 
0012 def test_cli_module_has_version():
0013     """Test that aid2e.cli has a version attribute."""
0014     import aid2e.cli
0015     assert hasattr(aid2e.cli, '__version__')
0016     assert isinstance(aid2e.cli.__version__, str)
0017 
0018 
0019 def test_cli_module_import():
0020     """Test that CLI module can be imported."""
0021     from aid2e.cli import aid2e_cli
0022     assert aid2e_cli is not None
0023 
0024 
0025 def test_cli_has_main_function():
0026     """Test that CLI module has the main cli function."""
0027     from aid2e.cli.aid2e_cli import cli
0028     assert callable(cli)
0029 
0030 
0031 def test_cli_is_click_group():
0032     """Test that CLI is a Click group."""
0033     import click
0034     from aid2e.cli.aid2e_cli import cli
0035     assert isinstance(cli, click.Group)