Back to home page

EIC code displayed by LXR

 
 

    


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

0001 """Tests for aid2e.utilities.workflows module."""
0002 
0003 import pytest
0004 
0005 def test_workflows_module_import():
0006     """Test that aid2e.utilities.workflows can be imported."""
0007     import aid2e.utilities.workflows
0008     assert aid2e.utilities.workflows is not None
0009 
0010 
0011 def test_workflows_module_has_version():
0012     """Test that workflows has a version attribute."""
0013     import aid2e.utilities.workflows
0014     assert hasattr(aid2e.utilities.workflows, '__version__')
0015     assert isinstance(aid2e.utilities.workflows.__version__, str)
0016 
0017 
0018 def test_stack_layer():
0019     """Test that workflows module has StackLayer class."""
0020     from aid2e.utilities.workflows import StackLayer
0021     assert StackLayer is not None
0022 
0023 
0024 def test_ana_layer():
0025     """Test that workflows module has AnaLayer class."""
0026     from aid2e.utilities.workflows import AnaLayer
0027     assert AnaLayer is not None
0028 
0029 
0030 def test_experiment_stack():
0031     """Test that workflows module has ExperimentStack class."""
0032     from aid2e.utilities.workflows import ExperimentStack
0033     assert ExperimentStack is not None
0034 
0035 
0036 def test_workflows_module_structure():
0037     """Test that workflows module has expected structure."""
0038     import aid2e.utilities.workflows as work
0039     assert hasattr(work, '__name__')
0040     assert work.__name__ == 'aid2e.utilities.workflows'