Skip to content

FEAT: Add a Message Manager for App #1540

FEAT: Add a Message Manager for App

FEAT: Add a Message Manager for App #1540

GitHub Actions / Test Report 3.10 failed Feb 5, 2025 in 0s

39 tests run, 32 passed, 3 skipped, 4 failed.

Annotations

Check failure on line 34 in tests/embedding/test_messages.py

See this annotation in the file changed.

@github-actions github-actions / Test Report 3.10

test_messages.test_message_manager

assert 1 == 0
 +  where 1 = len(Pandas is not available. Please pip install pandas to display messages.)
 +    where Pandas is not available. Please pip install pandas to display messages. = Ansys Mechanical [Ansys Mechanical Enterprise]\nProduct Version:251\nSoftware build date: 11/27/2024 09:34:44\n.messages
Raw output
embedded_app = Ansys Mechanical [Ansys Mechanical Enterprise]
Product Version:251
Software build date: 11/27/2024 09:34:44

capsys = <_pytest.capture.CaptureFixture object at 0x7f5829b3d750>

    @pytest.mark.embedding
    def test_message_manager(embedded_app, capsys):
        """Test message manager"""
        embedded_app.new()
>       assert len(embedded_app.messages) == 0
E       assert 1 == 0
E        +  where 1 = len(Pandas is not available. Please pip install pandas to display messages.)
E        +    where Pandas is not available. Please pip install pandas to display messages. = Ansys Mechanical [Ansys Mechanical Enterprise]\nProduct Version:251\nSoftware build date: 11/27/2024 09:34:44\n.messages

tests/embedding/test_messages.py:34: AssertionError

Check failure on line 54 in tests/embedding/test_messages.py

See this annotation in the file changed.

@github-actions github-actions / Test Report 3.10

test_messages.test_message_add_and_clear

assert 2 == 1
 +  where 2 = len(Pandas is not available. Please pip install pandas to display messages.)
 +    where Pandas is not available. Please pip install pandas to display messages. = Ansys Mechanical [Ansys Mechanical Enterprise]\nProduct Version:251\nSoftware build date: 11/27/2024 09:34:44\n.messages
Raw output
embedded_app = Ansys Mechanical [Ansys Mechanical Enterprise]
Product Version:251
Software build date: 11/27/2024 09:34:44


    @pytest.mark.embedding
    def test_message_add_and_clear(embedded_app):
        """Test adding and clearing messages"""
        embedded_app.new()
        embedded_app.messages.add("info", "Info message")
>       assert len(embedded_app.messages) == 1
E       assert 2 == 1
E        +  where 2 = len(Pandas is not available. Please pip install pandas to display messages.)
E        +    where Pandas is not available. Please pip install pandas to display messages. = Ansys Mechanical [Ansys Mechanical Enterprise]\nProduct Version:251\nSoftware build date: 11/27/2024 09:34:44\n.messages

tests/embedding/test_messages.py:54: AssertionError

Check failure on line 80 in tests/embedding/test_messages.py

See this annotation in the file changed.

@github-actions github-actions / Test Report 3.10

test_messages.test_message_show

AssertionError: assert 'No messages to display.' in 'Severity: Warning\nDisplayString: The license manager is delayed in its response. The latest requests were answered after 25 seconds.\n\nNone'
Raw output
embedded_app = Ansys Mechanical [Ansys Mechanical Enterprise]
Product Version:251
Software build date: 11/27/2024 09:34:44

capsys = <_pytest.capture.CaptureFixture object at 0x7f5829be70d0>

    @pytest.mark.embedding
    def test_message_show(embedded_app, capsys):
        """Test showing messages"""
        embedded_app.new()
        print(embedded_app.messages.show())
        captured = capsys.readouterr()
        printed_output = captured.out.strip()
>       assert "No messages to display." in printed_output
E       AssertionError: assert 'No messages to display.' in 'Severity: Warning\nDisplayString: The license manager is delayed in its response. The latest requests were answered after 25 seconds.\n\nNone'

tests/embedding/test_messages.py:80: AssertionError

Check failure on line 104 in tests/embedding/test_messages.py

See this annotation in the file changed.

@github-actions github-actions / Test Report 3.10

test_messages.test_message_get

Failed: DID NOT RAISE <class 'IndexError'>
Raw output
embedded_app = Ansys Mechanical [Ansys Mechanical Enterprise]
Product Version:251
Software build date: 11/27/2024 09:34:44

assets = PosixPath('/__w/pymechanical/pymechanical/tests/assets')
capsys = <_pytest.capture.CaptureFixture object at 0x7f5829bf72e0>

    @pytest.mark.embedding
    def test_message_get(embedded_app, assets, capsys):
        """Test getting a message"""
        embedded_app.new()
>       with pytest.raises(IndexError):
E       Failed: DID NOT RAISE <class 'IndexError'>

tests/embedding/test_messages.py:104: Failed