Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:19:26

0001 # Created by: Dmitry Romanov, 2024
0002 # This file is part of Firebird Event Display and is licensed under the LGPLv3.
0003 # See the LICENSE file in the project root for full license information.
0004 
0005 import pytest
0006 
0007 
0008 def raises_value_error():
0009     raise ValueError("Invalid value")
0010 
0011 
0012 def test_raises_value_error():
0013     with pytest.raises(ValueError, match="Invalid value"):
0014         raises_value_error()
0015 
0016 
0017 def test_import_pyrobird_cli():
0018     """Test if the pyrobird.cli module can be imported."""
0019     try:
0020         from pyrobird import cli
0021     except ImportError as e:
0022         assert False, f"Failed to import pyrobird.cli: {e}"