Skip to content
GitHub Actions / Test Report 3.11 failed Nov 13, 2024 in 0s

22 tests run, 8 passed, 0 skipped, 14 failed.

Annotations

Check failure on line 53 in tests/embedding/test_background.py

See this annotation in the file changed.

@github-actions github-actions / Test Report 3.11

test_background.test_background_app_multiple_instances

AssertionError: assert '@@success@@' not in '@@success@@\n'
  
  '@@success@@' is contained here:
  Strings contain only whitespace, escaping them using repr()
    '@@success@@\n'
Raw output
rootdir = PosixPath('/__w/pymechanical/pymechanical')
run_subprocess = <function run_subprocess.<locals>.func at 0x7fa9f26c2980>
pytestconfig = <_pytest.config.Config object at 0x7fa9f4926690>
pass_expected = False

    @pytest.mark.embedding_scripts
    def test_background_app_multiple_instances(rootdir, run_subprocess, pytestconfig, pass_expected):
        """Multiple instances of background app can be used."""
>       stderr = _run_background_app_test(
            run_subprocess, rootdir, pytestconfig, "multiple_instances", pass_expected
        )

tests/embedding/test_background.py:61: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/embedding/test_background.py:53: in _run_background_app_test
    _assert_success(stdout, pass_expected)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

stdout = '@@success@@\n', pass_expected = False

    def _assert_success(stdout: str, pass_expected: bool) -> int:
        """Asserts the outcome of the process matches pass_expected"""
    
        # HACK! On linux, due to bug #85, there is always a crash on shutdown
        # so instead there's a print("success") that happens after the test
        # function runs that will only be executed if the function doesn't
        # throw. To check for the subprocess success, ensure that the stdout
        # has "@@success@@" (a value written there in the subprocess after the
        # test function runs)
        if pass_expected:
            assert "@@success@@" in stdout
        else:
>           assert "@@success@@" not in stdout
E           AssertionError: assert '@@success@@' not in '@@success@@\n'
E             
E             '@@success@@' is contained here:
E             Strings contain only whitespace, escaping them using repr()
E               '@@success@@\n'

tests/embedding/test_logger.py:79: AssertionError

Check failure on line 1 in tests/embedding/test_background.py

See this annotation in the file changed.

@github-actions github-actions / Test Report 3.11

test_background.test_background_app_multiple_instances

failed on teardown with "Failed: fixture function has more than one 'yield':

    @pytest.fixture()
    def pass_expected(pytestconfig):
        """Checks for conditions to see if scripts run in subprocess are expected to pass or not."""
    
        version = pytestconfig.getoption("ansys_version")
        if os.name != "nt" and int(version) < 251:
            yield False
        yield True
/__w/pymechanical/pymechanical/tests/conftest.py:204"
Raw output
fixture function has more than one 'yield':

    @pytest.fixture()
    def pass_expected(pytestconfig):
        """Checks for conditions to see if scripts run in subprocess are expected to pass or not."""
    
        version = pytestconfig.getoption("ansys_version")
        if os.name != "nt" and int(version) < 251:
            yield False
        yield True
/__w/pymechanical/pymechanical/tests/conftest.py:204

Check failure on line 79 in tests/embedding/test_logger.py

See this annotation in the file changed.

@github-actions github-actions / Test Report 3.11

test_logger.test_logging_write_info_after_initialize_with_error_level

AssertionError: assert '@@success@@' not in '@@success@@\n'
  
  '@@success@@' is contained here:
  Strings contain only whitespace, escaping them using repr()
    '@@success@@\n'
Raw output
rootdir = PosixPath('/__w/pymechanical/pymechanical')
run_subprocess = <function run_subprocess.<locals>.func at 0x7fa9f258c4a0>
pytestconfig = <_pytest.config.Config object at 0x7fa9f4926690>
pass_expected = False

    @pytest.mark.embedding_scripts
    def test_logging_write_info_after_initialize_with_error_level(
        rootdir, run_subprocess, pytestconfig, pass_expected
    ):
        """Test that no output is written when an info is logged when configured at the error level."""
>       stderr = _run_embedding_log_test(
            run_subprocess,
            rootdir,
            pytestconfig,
            "log_info_after_initialize_with_error_level",
            pass_expected,
        )

tests/embedding/test_logger.py:96: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/embedding/test_logger.py:63: in _run_embedding_log_test
    _assert_success(stdout, pass_expected)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

stdout = '@@success@@\n', pass_expected = False

    def _assert_success(stdout: str, pass_expected: bool) -> int:
        """Asserts the outcome of the process matches pass_expected"""
    
        # HACK! On linux, due to bug #85, there is always a crash on shutdown
        # so instead there's a print("success") that happens after the test
        # function runs that will only be executed if the function doesn't
        # throw. To check for the subprocess success, ensure that the stdout
        # has "@@success@@" (a value written there in the subprocess after the
        # test function runs)
        if pass_expected:
            assert "@@success@@" in stdout
        else:
>           assert "@@success@@" not in stdout
E           AssertionError: assert '@@success@@' not in '@@success@@\n'
E             
E             '@@success@@' is contained here:
E             Strings contain only whitespace, escaping them using repr()
E               '@@success@@\n'

tests/embedding/test_logger.py:79: AssertionError

Check failure on line 1 in tests/embedding/test_logger.py

See this annotation in the file changed.

@github-actions github-actions / Test Report 3.11

test_logger.test_logging_write_info_after_initialize_with_error_level

failed on teardown with "Failed: fixture function has more than one 'yield':

    @pytest.fixture()
    def pass_expected(pytestconfig):
        """Checks for conditions to see if scripts run in subprocess are expected to pass or not."""
    
        version = pytestconfig.getoption("ansys_version")
        if os.name != "nt" and int(version) < 251:
            yield False
        yield True
/__w/pymechanical/pymechanical/tests/conftest.py:204"
Raw output
fixture function has more than one 'yield':

    @pytest.fixture()
    def pass_expected(pytestconfig):
        """Checks for conditions to see if scripts run in subprocess are expected to pass or not."""
    
        version = pytestconfig.getoption("ansys_version")
        if os.name != "nt" and int(version) < 251:
            yield False
        yield True
/__w/pymechanical/pymechanical/tests/conftest.py:204

Check failure on line 79 in tests/embedding/test_logger.py

See this annotation in the file changed.

@github-actions github-actions / Test Report 3.11

test_logger.test_addin_configuration[Mechanical]

AssertionError: assert '@@success@@' not in '@@success@@\n'
  
  '@@success@@' is contained here:
  Strings contain only whitespace, escaping them using repr()
    '@@success@@\n'
Raw output
rootdir = PosixPath('/__w/pymechanical/pymechanical')
run_subprocess = <function run_subprocess.<locals>.func at 0x7fa9f258cc20>
pytestconfig = <_pytest.config.Config object at 0x7fa9f4926690>
addin_configuration = 'Mechanical', pass_expected = False

    @pytest.mark.parametrize("addin_configuration", ["Mechanical", "WorkBench"])
    @pytest.mark.embedding_scripts
    @pytest.mark.minimum_version(241)
    def test_addin_configuration(
        rootdir, run_subprocess, pytestconfig, addin_configuration, pass_expected
    ):
        """Test that mechanical can start with both the Mechanical and WorkBench configuration."""
>       stderr = _run_embedding_log_test(
            run_subprocess,
            rootdir,
            pytestconfig,
            f"log_configuration_{addin_configuration}",
            pass_expected,
        )

tests/embedding/test_logger.py:113: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/embedding/test_logger.py:63: in _run_embedding_log_test
    _assert_success(stdout, pass_expected)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

stdout = '@@success@@\n', pass_expected = False

    def _assert_success(stdout: str, pass_expected: bool) -> int:
        """Asserts the outcome of the process matches pass_expected"""
    
        # HACK! On linux, due to bug #85, there is always a crash on shutdown
        # so instead there's a print("success") that happens after the test
        # function runs that will only be executed if the function doesn't
        # throw. To check for the subprocess success, ensure that the stdout
        # has "@@success@@" (a value written there in the subprocess after the
        # test function runs)
        if pass_expected:
            assert "@@success@@" in stdout
        else:
>           assert "@@success@@" not in stdout
E           AssertionError: assert '@@success@@' not in '@@success@@\n'
E             
E             '@@success@@' is contained here:
E             Strings contain only whitespace, escaping them using repr()
E               '@@success@@\n'

tests/embedding/test_logger.py:79: AssertionError

Check failure on line 1 in tests/embedding/test_logger.py

See this annotation in the file changed.

@github-actions github-actions / Test Report 3.11

test_logger.test_addin_configuration[Mechanical]

failed on teardown with "Failed: fixture function has more than one 'yield':

    @pytest.fixture()
    def pass_expected(pytestconfig):
        """Checks for conditions to see if scripts run in subprocess are expected to pass or not."""
    
        version = pytestconfig.getoption("ansys_version")
        if os.name != "nt" and int(version) < 251:
            yield False
        yield True
/__w/pymechanical/pymechanical/tests/conftest.py:204"
Raw output
fixture function has more than one 'yield':

    @pytest.fixture()
    def pass_expected(pytestconfig):
        """Checks for conditions to see if scripts run in subprocess are expected to pass or not."""
    
        version = pytestconfig.getoption("ansys_version")
        if os.name != "nt" and int(version) < 251:
            yield False
        yield True
/__w/pymechanical/pymechanical/tests/conftest.py:204

Check failure on line 79 in tests/embedding/test_logger.py

See this annotation in the file changed.

@github-actions github-actions / Test Report 3.11

test_logger.test_addin_configuration[WorkBench]

AssertionError: assert '@@success@@' not in '@@success@@\n'
  
  '@@success@@' is contained here:
  Strings contain only whitespace, escaping them using repr()
    '@@success@@\n'
Raw output
rootdir = PosixPath('/__w/pymechanical/pymechanical')
run_subprocess = <function run_subprocess.<locals>.func at 0x7fa9f258c180>
pytestconfig = <_pytest.config.Config object at 0x7fa9f4926690>
addin_configuration = 'WorkBench', pass_expected = False

    @pytest.mark.parametrize("addin_configuration", ["Mechanical", "WorkBench"])
    @pytest.mark.embedding_scripts
    @pytest.mark.minimum_version(241)
    def test_addin_configuration(
        rootdir, run_subprocess, pytestconfig, addin_configuration, pass_expected
    ):
        """Test that mechanical can start with both the Mechanical and WorkBench configuration."""
>       stderr = _run_embedding_log_test(
            run_subprocess,
            rootdir,
            pytestconfig,
            f"log_configuration_{addin_configuration}",
            pass_expected,
        )

tests/embedding/test_logger.py:113: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/embedding/test_logger.py:63: in _run_embedding_log_test
    _assert_success(stdout, pass_expected)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

stdout = '@@success@@\n', pass_expected = False

    def _assert_success(stdout: str, pass_expected: bool) -> int:
        """Asserts the outcome of the process matches pass_expected"""
    
        # HACK! On linux, due to bug #85, there is always a crash on shutdown
        # so instead there's a print("success") that happens after the test
        # function runs that will only be executed if the function doesn't
        # throw. To check for the subprocess success, ensure that the stdout
        # has "@@success@@" (a value written there in the subprocess after the
        # test function runs)
        if pass_expected:
            assert "@@success@@" in stdout
        else:
>           assert "@@success@@" not in stdout
E           AssertionError: assert '@@success@@' not in '@@success@@\n'
E             
E             '@@success@@' is contained here:
E             Strings contain only whitespace, escaping them using repr()
E               '@@success@@\n'

tests/embedding/test_logger.py:79: AssertionError

Check failure on line 1 in tests/embedding/test_logger.py

See this annotation in the file changed.

@github-actions github-actions / Test Report 3.11

test_logger.test_addin_configuration[WorkBench]

failed on teardown with "Failed: fixture function has more than one 'yield':

    @pytest.fixture()
    def pass_expected(pytestconfig):
        """Checks for conditions to see if scripts run in subprocess are expected to pass or not."""
    
        version = pytestconfig.getoption("ansys_version")
        if os.name != "nt" and int(version) < 251:
            yield False
        yield True
/__w/pymechanical/pymechanical/tests/conftest.py:204"
Raw output
fixture function has more than one 'yield':

    @pytest.fixture()
    def pass_expected(pytestconfig):
        """Checks for conditions to see if scripts run in subprocess are expected to pass or not."""
    
        version = pytestconfig.getoption("ansys_version")
        if os.name != "nt" and int(version) < 251:
            yield False
        yield True
/__w/pymechanical/pymechanical/tests/conftest.py:204

Check failure on line 79 in tests/embedding/test_logger.py

See this annotation in the file changed.

@github-actions github-actions / Test Report 3.11

test_logger.test_logging_write_error_after_initialize_with_info_level

AssertionError: assert '@@success@@' not in '@@success@@\n'
  
  '@@success@@' is contained here:
  Strings contain only whitespace, escaping them using repr()
    '@@success@@\n'
Raw output
rootdir = PosixPath('/__w/pymechanical/pymechanical')
run_subprocess = <function run_subprocess.<locals>.func at 0x7fa9f258d440>
pytestconfig = <_pytest.config.Config object at 0x7fa9f4926690>
pass_expected = False

    @pytest.mark.embedding_scripts
    def test_logging_write_error_after_initialize_with_info_level(
        rootdir, run_subprocess, pytestconfig, pass_expected
    ):
        """Test that output is written when an error is logged when configured at the info level."""
>       stderr = _run_embedding_log_test(
            run_subprocess,
            rootdir,
            pytestconfig,
            "log_error_after_initialize_with_info_level",
            pass_expected,
        )

tests/embedding/test_logger.py:128: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/embedding/test_logger.py:63: in _run_embedding_log_test
    _assert_success(stdout, pass_expected)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

stdout = '@@success@@\n', pass_expected = False

    def _assert_success(stdout: str, pass_expected: bool) -> int:
        """Asserts the outcome of the process matches pass_expected"""
    
        # HACK! On linux, due to bug #85, there is always a crash on shutdown
        # so instead there's a print("success") that happens after the test
        # function runs that will only be executed if the function doesn't
        # throw. To check for the subprocess success, ensure that the stdout
        # has "@@success@@" (a value written there in the subprocess after the
        # test function runs)
        if pass_expected:
            assert "@@success@@" in stdout
        else:
>           assert "@@success@@" not in stdout
E           AssertionError: assert '@@success@@' not in '@@success@@\n'
E             
E             '@@success@@' is contained here:
E             Strings contain only whitespace, escaping them using repr()
E               '@@success@@\n'

tests/embedding/test_logger.py:79: AssertionError

Check failure on line 1 in tests/embedding/test_logger.py

See this annotation in the file changed.

@github-actions github-actions / Test Report 3.11

test_logger.test_logging_write_error_after_initialize_with_info_level

failed on teardown with "Failed: fixture function has more than one 'yield':

    @pytest.fixture()
    def pass_expected(pytestconfig):
        """Checks for conditions to see if scripts run in subprocess are expected to pass or not."""
    
        version = pytestconfig.getoption("ansys_version")
        if os.name != "nt" and int(version) < 251:
            yield False
        yield True
/__w/pymechanical/pymechanical/tests/conftest.py:204"
Raw output
fixture function has more than one 'yield':

    @pytest.fixture()
    def pass_expected(pytestconfig):
        """Checks for conditions to see if scripts run in subprocess are expected to pass or not."""
    
        version = pytestconfig.getoption("ansys_version")
        if os.name != "nt" and int(version) < 251:
            yield False
        yield True
/__w/pymechanical/pymechanical/tests/conftest.py:204

Check failure on line 79 in tests/embedding/test_logger.py

See this annotation in the file changed.

@github-actions github-actions / Test Report 3.11

test_logger.test_logging_level_before_and_after_initialization

AssertionError: assert '@@success@@' not in '@@success@@\n'
  
  '@@success@@' is contained here:
  Strings contain only whitespace, escaping them using repr()
    '@@success@@\n'
Raw output
rootdir = PosixPath('/__w/pymechanical/pymechanical')
run_subprocess = <function run_subprocess.<locals>.func at 0x7fa9f258db20>
pytestconfig = <_pytest.config.Config object at 0x7fa9f4926690>
pass_expected = False

    @pytest.mark.embedding_scripts
    def test_logging_level_before_and_after_initialization(
        rootdir, run_subprocess, pytestconfig, pass_expected
    ):
        """Test logging level API  before and after initialization."""
>       stderr = _run_embedding_log_test(
            run_subprocess, rootdir, pytestconfig, "log_check_can_log_message", pass_expected
        )

tests/embedding/test_logger.py:143: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/embedding/test_logger.py:63: in _run_embedding_log_test
    _assert_success(stdout, pass_expected)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

stdout = '@@success@@\n', pass_expected = False

    def _assert_success(stdout: str, pass_expected: bool) -> int:
        """Asserts the outcome of the process matches pass_expected"""
    
        # HACK! On linux, due to bug #85, there is always a crash on shutdown
        # so instead there's a print("success") that happens after the test
        # function runs that will only be executed if the function doesn't
        # throw. To check for the subprocess success, ensure that the stdout
        # has "@@success@@" (a value written there in the subprocess after the
        # test function runs)
        if pass_expected:
            assert "@@success@@" in stdout
        else:
>           assert "@@success@@" not in stdout
E           AssertionError: assert '@@success@@' not in '@@success@@\n'
E             
E             '@@success@@' is contained here:
E             Strings contain only whitespace, escaping them using repr()
E               '@@success@@\n'

tests/embedding/test_logger.py:79: AssertionError

Check failure on line 1 in tests/embedding/test_logger.py

See this annotation in the file changed.

@github-actions github-actions / Test Report 3.11

test_logger.test_logging_level_before_and_after_initialization

failed on teardown with "Failed: fixture function has more than one 'yield':

    @pytest.fixture()
    def pass_expected(pytestconfig):
        """Checks for conditions to see if scripts run in subprocess are expected to pass or not."""
    
        version = pytestconfig.getoption("ansys_version")
        if os.name != "nt" and int(version) < 251:
            yield False
        yield True
/__w/pymechanical/pymechanical/tests/conftest.py:204"
Raw output
fixture function has more than one 'yield':

    @pytest.fixture()
    def pass_expected(pytestconfig):
        """Checks for conditions to see if scripts run in subprocess are expected to pass or not."""
    
        version = pytestconfig.getoption("ansys_version")
        if os.name != "nt" and int(version) < 251:
            yield False
        yield True
/__w/pymechanical/pymechanical/tests/conftest.py:204

Check failure on line 79 in tests/embedding/test_logger.py

See this annotation in the file changed.

@github-actions github-actions / Test Report 3.11

test_logger.test_logging_all_level

AssertionError: assert '@@success@@' not in '@@success@@\n'
  
  '@@success@@' is contained here:
  Strings contain only whitespace, escaping them using repr()
    '@@success@@\n'
Raw output
rootdir = PosixPath('/__w/pymechanical/pymechanical')
run_subprocess = <function run_subprocess.<locals>.func at 0x7fa9f258e0c0>
pytestconfig = <_pytest.config.Config object at 0x7fa9f4926690>
pass_expected = False

    @pytest.mark.embedding_scripts
    def test_logging_all_level(rootdir, run_subprocess, pytestconfig, pass_expected):
        """Test all logging level after initialization."""
>       stderr = _run_embedding_log_test(
            run_subprocess, rootdir, pytestconfig, "log_check_all_log_level", pass_expected
        )

tests/embedding/test_logger.py:151: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/embedding/test_logger.py:63: in _run_embedding_log_test
    _assert_success(stdout, pass_expected)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

stdout = '@@success@@\n', pass_expected = False

    def _assert_success(stdout: str, pass_expected: bool) -> int:
        """Asserts the outcome of the process matches pass_expected"""
    
        # HACK! On linux, due to bug #85, there is always a crash on shutdown
        # so instead there's a print("success") that happens after the test
        # function runs that will only be executed if the function doesn't
        # throw. To check for the subprocess success, ensure that the stdout
        # has "@@success@@" (a value written there in the subprocess after the
        # test function runs)
        if pass_expected:
            assert "@@success@@" in stdout
        else:
>           assert "@@success@@" not in stdout
E           AssertionError: assert '@@success@@' not in '@@success@@\n'
E             
E             '@@success@@' is contained here:
E             Strings contain only whitespace, escaping them using repr()
E               '@@success@@\n'

tests/embedding/test_logger.py:79: AssertionError

Check failure on line 1 in tests/embedding/test_logger.py

See this annotation in the file changed.

@github-actions github-actions / Test Report 3.11

test_logger.test_logging_all_level

failed on teardown with "Failed: fixture function has more than one 'yield':

    @pytest.fixture()
    def pass_expected(pytestconfig):
        """Checks for conditions to see if scripts run in subprocess are expected to pass or not."""
    
        version = pytestconfig.getoption("ansys_version")
        if os.name != "nt" and int(version) < 251:
            yield False
        yield True
/__w/pymechanical/pymechanical/tests/conftest.py:204"
Raw output
fixture function has more than one 'yield':

    @pytest.fixture()
    def pass_expected(pytestconfig):
        """Checks for conditions to see if scripts run in subprocess are expected to pass or not."""
    
        version = pytestconfig.getoption("ansys_version")
        if os.name != "nt" and int(version) < 251:
            yield False
        yield True
/__w/pymechanical/pymechanical/tests/conftest.py:204