Skip to content
GitHub Actions / Test Report (macos-latest, 3.10) failed Jun 13, 2023 in 0s

38 tests run, 26 passed, 0 skipped, 12 failed.

Annotations

Check failure on line 36 in tests/test_addoptions.py

See this annotation in the file changed.

@github-actions github-actions / Test Report (macos-latest, 3.10)

test_addoptions.test_fluentd_logged_parameters

ValueError: Pytest terminal summary report not found
Raw output
monkeypatched_uuid4 = None
runpytest = <function runpytest.<locals>.runpytest at 0x111f367a0>
fluentd_sender = <MagicMock name='FluentSender()' id='4597959312'>
session_uuid = UUID('912c1a24-e84e-4888-8698-272f20840cff')
logging_content = 'Logged from test_base'

    def test_fluentd_logged_parameters(
        monkeypatched_uuid4, runpytest, fluentd_sender, session_uuid, logging_content
    ):
        result = runpytest(
            f"--session-uuid={session_uuid}",
            f"--fluentd-tag={FLUENTD_TAG}",
            f"--fluentd-label={FLUENTD_LABEL}",
            "--extend-logging",
        )
        call_args = fluentd_sender.emit_with_time.call_args_list
>       result.assert_outcomes(passed=1)

/Users/runner/work/pytest-fluent/pytest-fluent/tests/test_addoptions.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/Users/runner/work/pytest-fluent/pytest-fluent/.tox/test/lib/python3.10/site-packages/_pytest/pytester.py:567: in parseoutcomes
    return self.parse_summary_nouns(self.outlines)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class '_pytest.pytester.RunResult'>
lines = ['INTERNALERROR> Traceback (most recent call last):', 'INTERNALERROR>   File "/Users/runner/work/pytest-fluent/pytest-...rk/pytest-fluent/pytest-fluent/.tox/test/lib/python3.10/site-packages/pluggy/_manager.py", line 80, in _hookexec', ...]

    @classmethod
    def parse_summary_nouns(cls, lines) -> Dict[str, int]:
        """Extract the nouns from a pytest terminal summary line.
    
        It always returns the plural noun for consistency::
    
            ======= 1 failed, 1 passed, 1 warning, 1 error in 0.13s ====
    
        Will return ``{"failed": 1, "passed": 1, "warnings": 1, "errors": 1}``.
        """
        for line in reversed(lines):
            if rex_session_duration.search(line):
                outcomes = rex_outcome.findall(line)
                ret = {noun: int(count) for (count, noun) in outcomes}
                break
        else:
>           raise ValueError("Pytest terminal summary report not found")
E           ValueError: Pytest terminal summary report not found

/Users/runner/work/pytest-fluent/pytest-fluent/.tox/test/lib/python3.10/site-packages/_pytest/pytester.py:585: ValueError

Check failure on line 114 in tests/test_addoptions.py

See this annotation in the file changed.

@github-actions github-actions / Test Report (macos-latest, 3.10)

test_addoptions.test_fluentd_with_options_and_timestamp_enabled_shows_timestamp_field_in_output

ValueError: Pytest terminal summary report not found
Raw output
runpytest = <function runpytest.<locals>.runpytest at 0x111f37640>
fluentd_sender = <MagicMock name='FluentSender()' id='4598021520'>
session_uuid = UUID('912c1a24-e84e-4888-8698-272f20840cff')

    def test_fluentd_with_options_and_timestamp_enabled_shows_timestamp_field_in_output(
        runpytest, fluentd_sender, session_uuid
    ):
        result = runpytest(
            f"--session-uuid={session_uuid}",
            f"--fluentd-tag={FLUENTD_TAG}",
            f"--fluentd-label={FLUENTD_LABEL}",
            f"--fluentd-timestamp=@timestamp",
            "--extend-logging",
        )
>       result.assert_outcomes(passed=1)

/Users/runner/work/pytest-fluent/pytest-fluent/tests/test_addoptions.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/Users/runner/work/pytest-fluent/pytest-fluent/.tox/test/lib/python3.10/site-packages/_pytest/pytester.py:567: in parseoutcomes
    return self.parse_summary_nouns(self.outlines)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class '_pytest.pytester.RunResult'>
lines = ['INTERNALERROR> Traceback (most recent call last):', 'INTERNALERROR>   File "/Users/runner/work/pytest-fluent/pytest-...rk/pytest-fluent/pytest-fluent/.tox/test/lib/python3.10/site-packages/pluggy/_manager.py", line 80, in _hookexec', ...]

    @classmethod
    def parse_summary_nouns(cls, lines) -> Dict[str, int]:
        """Extract the nouns from a pytest terminal summary line.
    
        It always returns the plural noun for consistency::
    
            ======= 1 failed, 1 passed, 1 warning, 1 error in 0.13s ====
    
        Will return ``{"failed": 1, "passed": 1, "warnings": 1, "errors": 1}``.
        """
        for line in reversed(lines):
            if rex_session_duration.search(line):
                outcomes = rex_outcome.findall(line)
                ret = {noun: int(count) for (count, noun) in outcomes}
                break
        else:
>           raise ValueError("Pytest terminal summary report not found")
E           ValueError: Pytest terminal summary report not found

/Users/runner/work/pytest-fluent/pytest-fluent/.tox/test/lib/python3.10/site-packages/_pytest/pytester.py:585: ValueError

Check failure on line 129 in tests/test_addoptions.py

See this annotation in the file changed.

@github-actions github-actions / Test Report (macos-latest, 3.10)

test_addoptions.test_fluentd_with_timestamp_enabled_shows_timestamp_field_in_output

ValueError: Pytest terminal summary report not found
Raw output
runpytest = <function runpytest.<locals>.runpytest at 0x1121830a0>
fluentd_sender = <MagicMock name='FluentSender()' id='4598414736'>
session_uuid = UUID('912c1a24-e84e-4888-8698-272f20840cff')

    def test_fluentd_with_timestamp_enabled_shows_timestamp_field_in_output(
        runpytest, fluentd_sender, session_uuid
    ):
        result = runpytest(
            f"--session-uuid={session_uuid}",
            f"--fluentd-timestamp=@timestamp",
        )
>       result.assert_outcomes(passed=1)

/Users/runner/work/pytest-fluent/pytest-fluent/tests/test_addoptions.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/Users/runner/work/pytest-fluent/pytest-fluent/.tox/test/lib/python3.10/site-packages/_pytest/pytester.py:567: in parseoutcomes
    return self.parse_summary_nouns(self.outlines)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class '_pytest.pytester.RunResult'>
lines = ['INTERNALERROR> Traceback (most recent call last):', 'INTERNALERROR>   File "/Users/runner/work/pytest-fluent/pytest-...rk/pytest-fluent/pytest-fluent/.tox/test/lib/python3.10/site-packages/pluggy/_manager.py", line 80, in _hookexec', ...]

    @classmethod
    def parse_summary_nouns(cls, lines) -> Dict[str, int]:
        """Extract the nouns from a pytest terminal summary line.
    
        It always returns the plural noun for consistency::
    
            ======= 1 failed, 1 passed, 1 warning, 1 error in 0.13s ====
    
        Will return ``{"failed": 1, "passed": 1, "warnings": 1, "errors": 1}``.
        """
        for line in reversed(lines):
            if rex_session_duration.search(line):
                outcomes = rex_outcome.findall(line)
                ret = {noun: int(count) for (count, noun) in outcomes}
                break
        else:
>           raise ValueError("Pytest terminal summary report not found")
E           ValueError: Pytest terminal summary report not found

/Users/runner/work/pytest-fluent/pytest-fluent/.tox/test/lib/python3.10/site-packages/_pytest/pytester.py:585: ValueError

Check failure on line 19 in tests/test_docstrings.py

See this annotation in the file changed.

@github-actions github-actions / Test Report (macos-latest, 3.10)

test_docstrings.test_add_docstrings

assert 0 > 0
 +  where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x112182b00>, <MagicMock name='FluentSender()' id='4597315232'>)
session_uuid = UUID('912c1a24-e84e-4888-8698-272f20840cff')

    def test_add_docstrings(run_mocked_pytest, session_uuid):
        runpytest, fluent_sender = run_mocked_pytest
        result = runpytest(
            f"--session-uuid={session_uuid}",
            "--add-docstrings",
            pyfile=f"""
        def test_base():
            '''
            {TEST_DOCSTRING}
            '''
            assert True
        """,
        )
        call_args = fluent_sender.emit_with_time.call_args_list
        result.assert_outcomes(passed=1)
>       assert len(call_args) > 0
E       assert 0 > 0
E        +  where 0 = len([])

/Users/runner/work/pytest-fluent/pytest-fluent/tests/test_docstrings.py:19: AssertionError

Check failure on line 39 in tests/test_docstrings.py

See this annotation in the file changed.

@github-actions github-actions / Test Report (macos-latest, 3.10)

test_docstrings.test_docstrings_disabled

assert 0 > 0
 +  where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x111f36710>, <MagicMock name='FluentSender()' id='4596879024'>)
session_uuid = UUID('912c1a24-e84e-4888-8698-272f20840cff')

    def test_docstrings_disabled(run_mocked_pytest, session_uuid):
        runpytest, fluent_sender = run_mocked_pytest
        result = runpytest(
            f"--session-uuid={session_uuid}",
            pyfile=f"""
        def test_base():
            '''
            {TEST_DOCSTRING}
            '''
            assert True
        """,
        )
        call_args = fluent_sender.emit_with_time.call_args_list
        result.assert_outcomes(passed=1)
>       assert len(call_args) > 0
E       assert 0 > 0
E        +  where 0 = len([])

/Users/runner/work/pytest-fluent/pytest-fluent/tests/test_docstrings.py:39: AssertionError

Check failure on line 56 in tests/test_docstrings.py

See this annotation in the file changed.

@github-actions github-actions / Test Report (macos-latest, 3.10)

test_docstrings.test_missing_docstring

assert 0 > 0
 +  where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x1121829e0>, <MagicMock name='FluentSender()' id='4598963152'>)
session_uuid = UUID('912c1a24-e84e-4888-8698-272f20840cff')

    def test_missing_docstring(run_mocked_pytest, session_uuid):
        runpytest, fluent_sender = run_mocked_pytest
        result = runpytest(
            f"--session-uuid={session_uuid}",
            "--add-docstrings",
            pyfile="""
        def test_base():
            assert True
        """,
        )
        call_args = fluent_sender.emit_with_time.call_args_list
        result.assert_outcomes(passed=1)
>       assert len(call_args) > 0
E       assert 0 > 0
E        +  where 0 = len([])

/Users/runner/work/pytest-fluent/pytest-fluent/tests/test_docstrings.py:56: AssertionError

Check failure on line 15 in tests/test_fixtures.py

See this annotation in the file changed.

@github-actions github-actions / Test Report (macos-latest, 3.10)

test_fixtures.test_get_logger

assert 0 > 0
 +  where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x1121800d0>, <MagicMock name='FluentSender()' id='4599641856'>)
session_uuid = UUID('912c1a24-e84e-4888-8698-272f20840cff')
logging_content = 'Logged from test_base'

    def test_get_logger(run_mocked_pytest, session_uuid, logging_content):
        runpytest, fluent_sender = run_mocked_pytest
        result = runpytest(
            f"--session-uuid={session_uuid}",
            "--extend-logging",
            pyfile=f"""
        def test_base(get_logger):
            LOGGER = get_logger('my.Logger')
            LOGGER.info('{logging_content}')
            assert True
        """,
        )
        call_args = fluent_sender.emit_with_time.call_args_list
        result.assert_outcomes(passed=1)
>       assert len(call_args) > 0
E       assert 0 > 0
E        +  where 0 = len([])

/Users/runner/work/pytest-fluent/pytest-fluent/tests/test_fixtures.py:15: AssertionError

Check failure on line 12 in tests/test_reporting.py

See this annotation in the file changed.

@github-actions github-actions / Test Report (macos-latest, 3.10)

test_reporting.test_data_reporter_base_with_passed

assert 0 > 0
 +  where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x1125be830>, <MagicMock name='FluentSender()' id='4603727488'>)
session_uuid = UUID('912c1a24-e84e-4888-8698-272f20840cff')

    def test_data_reporter_base_with_passed(run_mocked_pytest, session_uuid):
        runpytest, fluent_sender = run_mocked_pytest
        result = runpytest(
            f"--session-uuid={session_uuid}",
            pyfile="""
        def test_base():
            assert True
        """,
        )
        call_args = fluent_sender.emit_with_time.call_args_list
        result.assert_outcomes(passed=1)
>       assert len(call_args) > 0
E       assert 0 > 0
E        +  where 0 = len([])

/Users/runner/work/pytest-fluent/pytest-fluent/tests/test_reporting.py:12: AssertionError

Check failure on line 52 in tests/test_reporting.py

See this annotation in the file changed.

@github-actions github-actions / Test Report (macos-latest, 3.10)

test_reporting.test_data_reporter_xdist_passed

assert 0 > 0
 +  where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x1125be950>, <MagicMock name='FluentSender()' id='4604505024'>)
session_uuid = UUID('912c1a24-e84e-4888-8698-272f20840cff')

    def test_data_reporter_xdist_passed(run_mocked_pytest, session_uuid):
        runpytest, fluent_sender = run_mocked_pytest
        result = runpytest(
            "-n 2",
            f"--session-uuid={session_uuid}",
            pyfile="""
        def test_base_group_one():
            assert True
    
        def test_base_group_two():
            assert True
    
        def test_base_group_three():
            assert True
    
        def test_base_group_four():
            assert True
    
        def test_base_group_five():
            assert True
    
        def test_base_group_six():
            assert True
        """,
        )
        call_args = fluent_sender.emit_with_time.call_args_list
        result.assert_outcomes(passed=6)
>       assert len(call_args) > 0
E       assert 0 > 0
E        +  where 0 = len([])

/Users/runner/work/pytest-fluent/pytest-fluent/tests/test_reporting.py:52: AssertionError

Check failure on line 89 in tests/test_reporting.py

See this annotation in the file changed.

@github-actions github-actions / Test Report (macos-latest, 3.10)

test_reporting.test_data_reporter_base_with_xfail

assert 0 > 0
 +  where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x112403be0>, <MagicMock name='FluentSender()' id='4601741568'>)
session_uuid = UUID('912c1a24-e84e-4888-8698-272f20840cff')

    def test_data_reporter_base_with_xfail(run_mocked_pytest, session_uuid):
        runpytest, fluent_sender = run_mocked_pytest
        _ = runpytest(
            f"--session-uuid={session_uuid}",
            pyfile="""
        import pytest
    
        @pytest.mark.xfail
        def test_base():
            assert False
        """,
        )
        call_args = fluent_sender.emit_with_time.call_args_list
>       assert len(call_args) > 0
E       assert 0 > 0
E        +  where 0 = len([])

/Users/runner/work/pytest-fluent/pytest-fluent/tests/test_reporting.py:89: AssertionError

Check failure on line 107 in tests/test_reporting.py

See this annotation in the file changed.

@github-actions github-actions / Test Report (macos-latest, 3.10)

test_reporting.test_data_reporter_base_with_exception

assert 0 > 0
 +  where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x112781e10>, <MagicMock name='FluentSender()' id='4603061888'>)
session_uuid = UUID('912c1a24-e84e-4888-8698-272f20840cff')

    def test_data_reporter_base_with_exception(run_mocked_pytest, session_uuid):
        runpytest, fluent_sender = run_mocked_pytest
        _ = runpytest(
            f"--session-uuid={session_uuid}",
            pyfile="""
        def test_base():
            raise Exception('TestException')
            assert True
        """,
        )
        call_args = fluent_sender.emit_with_time.call_args_list
>       assert len(call_args) > 0
E       assert 0 > 0
E        +  where 0 = len([])

/Users/runner/work/pytest-fluent/pytest-fluent/tests/test_reporting.py:107: AssertionError

Check failure on line 133 in tests/test_reporting.py

See this annotation in the file changed.

@github-actions github-actions / Test Report (macos-latest, 3.10)

test_reporting.test_data_reporter_base_with_setup_exception

assert 0 > 0
 +  where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x1127824d0>, <MagicMock name='FluentSender()' id='4601294768'>)
session_uuid = UUID('912c1a24-e84e-4888-8698-272f20840cff')

    def test_data_reporter_base_with_setup_exception(run_mocked_pytest, session_uuid):
        runpytest, fluent_sender = run_mocked_pytest
        _ = runpytest(
            f"--session-uuid={session_uuid}",
            pyfile="""
        import pytest
    
        @pytest.fixture
        def my_value() -> str:
            val = '1'
            raise ValueError('Value is wrong')
            return val
    
        def test_base(my_value):
            raise Exception('TestException')
            assert True
        """,
        )
        call_args = fluent_sender.emit_with_time.call_args_list
>       assert len(call_args) > 0
E       assert 0 > 0
E        +  where 0 = len([])

/Users/runner/work/pytest-fluent/pytest-fluent/tests/test_reporting.py:133: AssertionError