Skip to content

Commit

Permalink
Fixing some merge issues and fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
casabre committed Jun 13, 2023
1 parent 5ff949b commit 8b71a19
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 40 deletions.
8 changes: 4 additions & 4 deletions src/pytest_fluent/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import time
import typing

from fluent import sender
from fluent.sender import FluentSender

LOGGER = logging.getLogger(__package__)

Expand All @@ -26,8 +26,7 @@ def __init__(
) -> None:
"""Initialize custom event class."""
self.senders = {
tag: sender.FluentSender(tag=tag, host=host, port=port, **kwargs)
for tag in tags
tag: FluentSender(tag=tag, host=host, port=port, **kwargs) for tag in tags
}

def __call__(self, tag: str, label: str, data: dict, **kwargs):
Expand All @@ -40,8 +39,9 @@ def __call__(self, tag: str, label: str, data: dict, **kwargs):
"""
assert isinstance(data, dict), "data must be a dict"
sender_ = self.senders.get(tag)
if not sender_:
if sender_ is None or isinstance(sender_, FluentSender):
LOGGER.warning(f"Could not retrieve fluent instance for tag {tag}")
return
timestamp = kwargs.get("time", int(time.time()))
if not sender_.emit_with_time(label, timestamp, data):
LOGGER.warning(f"Could not send data via fluent for tag {tag}: {data}")
3 changes: 2 additions & 1 deletion src/pytest_fluent/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ def pytest_addoption(parser):
)
group.addoption(
"--fluentd-host",
default=None,
default="localhost",
type=str,
help="Fluentd remote host. Defaults to a local Fluentd session",
)
group.addoption(
Expand Down
31 changes: 22 additions & 9 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
import uuid
from unittest.mock import patch
from unittest.mock import MagicMock, patch

import pytest

import pytest_fluent.event

plugin_name = "pytest_fluent"


def isinstance_patch(
__obj: object,
__class_or_tuple,
) -> bool:
"""Patch for isinstance."""
if isinstance(__obj, MagicMock):
return True
return isinstance(__obj, __class_or_tuple)


@pytest.fixture(scope="session")
def logging_content():
return "Logged from test_base"
Expand Down Expand Up @@ -53,14 +65,15 @@ def test_base():


@pytest.fixture()
def run_mocked_pytest(runpytest):
"""create a temporary pytest environment with FluentSender mock."""

with patch("fluent.sender.FluentSender") as sender:
yield runpytest, sender
def fluentd_sender():
"""Get FluentSender mock."""
with patch("pytest_fluent.event.FluentSender") as sender:
yield sender.return_value


@pytest.fixture()
def fluentd_sender():
with patch("fluent.sender.FluentSender") as sender:
yield sender.return_value
def run_mocked_pytest(runpytest, fluentd_sender):
"""Create a temporary pytest environment with FluentSender mock."""

with patch.object(pytest_fluent.event, "isinstance", isinstance_patch):
yield runpytest, fluentd_sender
3 changes: 1 addition & 2 deletions tests/test_additional_information.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ def test_info() -> dict:


def test_additional_information(run_mocked_pytest, session_uuid):
runpytest, sender = run_mocked_pytest
runpytest, fluent_sender = run_mocked_pytest
runpytest(f"--session-uuid={session_uuid}")
fluent_sender = sender.return_value
call_args = fluent_sender.emit_with_time.call_args_list
for idx, call_arg in enumerate(call_args):
data = call_arg.args[2]
Expand Down
15 changes: 9 additions & 6 deletions tests/test_content_patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import os
import typing
import uuid
from unittest.mock import patch

import pytest

Expand Down Expand Up @@ -125,7 +126,7 @@ def stage_content_patched() -> dict:

@pytest.fixture
def namespace() -> argparse.Namespace:
return argparse.Namespace(**{"fluentd-tag": "pytest"})
return argparse.Namespace(**{"fluentd_tag": "pytest"})


def test_is_reference_string():
Expand All @@ -139,9 +140,9 @@ def test_get_env_content__no_env_string():

def test_get_env_content__env_string():
result = "test"
os.environ["USE_ENV"] = result
assert ContentPatcher._get_env_content("$USE_ENV") == result
assert ContentPatcher._get_env_content("${USE_ENV}") == result
with patch.dict(os.environ, {"USE_ENV": result}):
assert ContentPatcher._get_env_content("$USE_ENV") == result
assert ContentPatcher._get_env_content("${USE_ENV}") == result


def test_get_env_content__env_string_no_content():
Expand All @@ -163,8 +164,10 @@ def test_get_args_content__retrieve_no_content(stage_content, namespace, stage_n


def test_stage_settings(user_settings, user_settings_patched, stage_names):
patched = ContentPatcher._stage_settings(user_settings, stage_names)
assert patched == user_settings_patched
patched = ContentPatcher(
user_settings=user_settings, args_settings=namespace, stage_names=stage_names
)
assert patched._user_settings == user_settings_patched


@pytest.mark.parametrize(
Expand Down
9 changes: 3 additions & 6 deletions tests/test_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


def test_add_docstrings(run_mocked_pytest, session_uuid):
runpytest, sender = run_mocked_pytest
runpytest, fluent_sender = run_mocked_pytest
result = runpytest(
f"--session-uuid={session_uuid}",
"--add-docstrings",
Expand All @@ -14,7 +14,6 @@ def test_base():
assert True
""",
)
fluent_sender = sender.return_value
call_args = fluent_sender.emit_with_time.call_args_list
result.assert_outcomes(passed=1)
assert len(call_args) > 0

Check failure on line 19 in tests/test_docstrings.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.11)

test_docstrings.test_add_docstrings

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7f36fb47c4a0>, <MagicMock name='FluentSender()' id='139874120973456'>)
session_uuid = UUID('6f604360-40ca-48b5-9269-746be7b01886')

    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([])

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

Check failure on line 19 in tests/test_docstrings.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.10)

test_docstrings.test_add_docstrings

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7ff6c1a43640>, <MagicMock name='FluentSender()' id='140697788278160'>)
session_uuid = UUID('59ecae2d-b90d-40d6-88e3-b18e0052d095')

    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([])

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

Check failure on line 19 in tests/test_docstrings.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.8)

test_docstrings.test_add_docstrings

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7f51616aba60>, <MagicMock name='FluentSender()' id='139987504114752'>)
session_uuid = UUID('9f9badbb-cc79-4794-805b-dee7272afd77')

    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([])

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

Check failure on line 19 in tests/test_docstrings.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.9)

test_docstrings.test_add_docstrings

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7f695e53cdc0>, <MagicMock name='FluentSender()' id='140090532101712'>)
session_uuid = UUID('2ae88c7f-c179-49c4-8d24-b385919edc41')

    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([])

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

Check failure on line 19 in tests/test_docstrings.py

View workflow job for this annotation

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 19 in tests/test_docstrings.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.9)

test_docstrings.test_add_docstrings

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x104c15a60>, <MagicMock name='FluentSender()' id='4374870624'>)
session_uuid = UUID('6cd28a45-81fd-4504-9c04-0c11062b69d0')

    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 19 in tests/test_docstrings.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.8)

test_docstrings.test_add_docstrings

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x1100a30d0>, <MagicMock name='FluentSender()' id='4565394384'>)
session_uuid = UUID('7c030f2e-ad4c-4362-93fa-c8dc28ceaf0f')

    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 19 in tests/test_docstrings.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.11)

test_docstrings.test_add_docstrings

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x10c6ece00>, <MagicMock name='FluentSender()' id='4504848848'>)
session_uuid = UUID('02a2e946-0c9e-4809-881c-1bff557c2e9c')

    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
Expand All @@ -24,7 +23,7 @@ def test_base():


def test_docstrings_disabled(run_mocked_pytest, session_uuid):
runpytest, sender = run_mocked_pytest
runpytest, fluent_sender = run_mocked_pytest
result = runpytest(
f"--session-uuid={session_uuid}",
pyfile=f"""
Expand All @@ -35,7 +34,6 @@ def test_base():
assert True
""",
)
fluent_sender = sender.return_value
call_args = fluent_sender.emit_with_time.call_args_list
result.assert_outcomes(passed=1)
assert len(call_args) > 0

Check failure on line 39 in tests/test_docstrings.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.11)

test_docstrings.test_docstrings_disabled

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7f36fb2fce00>, <MagicMock name='FluentSender()' id='139874119004112'>)
session_uuid = UUID('6f604360-40ca-48b5-9269-746be7b01886')

    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([])

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

Check failure on line 39 in tests/test_docstrings.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.10)

test_docstrings.test_docstrings_disabled

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7ff6c1c50ee0>, <MagicMock name='FluentSender()' id='140697788980416'>)
session_uuid = UUID('59ecae2d-b90d-40d6-88e3-b18e0052d095')

    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([])

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

Check failure on line 39 in tests/test_docstrings.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.8)

test_docstrings.test_docstrings_disabled

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7f51615fb8b0>, <MagicMock name='FluentSender()' id='139987504796144'>)
session_uuid = UUID('9f9badbb-cc79-4794-805b-dee7272afd77')

    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([])

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

Check failure on line 39 in tests/test_docstrings.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.9)

test_docstrings.test_docstrings_disabled

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7f695e4d5820>, <MagicMock name='FluentSender()' id='140090529875712'>)
session_uuid = UUID('2ae88c7f-c179-49c4-8d24-b385919edc41')

    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([])

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

Check failure on line 39 in tests/test_docstrings.py

View workflow job for this annotation

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 39 in tests/test_docstrings.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.9)

test_docstrings.test_docstrings_disabled

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x1049b71f0>, <MagicMock name='FluentSender()' id='4373887296'>)
session_uuid = UUID('6cd28a45-81fd-4504-9c04-0c11062b69d0')

    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 39 in tests/test_docstrings.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.8)

test_docstrings.test_docstrings_disabled

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x110309d30>, <MagicMock name='FluentSender()' id='4565411680'>)
session_uuid = UUID('7c030f2e-ad4c-4362-93fa-c8dc28ceaf0f')

    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 39 in tests/test_docstrings.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.11)

test_docstrings.test_docstrings_disabled

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x10c831a80>, <MagicMock name='FluentSender()' id='4507084880'>)
session_uuid = UUID('02a2e946-0c9e-4809-881c-1bff557c2e9c')

    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
Expand All @@ -44,7 +42,7 @@ def test_base():


def test_missing_docstring(run_mocked_pytest, session_uuid):
runpytest, sender = run_mocked_pytest
runpytest, fluent_sender = run_mocked_pytest
result = runpytest(
f"--session-uuid={session_uuid}",
"--add-docstrings",
Expand All @@ -53,7 +51,6 @@ def test_base():
assert True
""",
)
fluent_sender = sender.return_value
call_args = fluent_sender.emit_with_time.call_args_list
result.assert_outcomes(passed=1)
assert len(call_args) > 0

Check failure on line 56 in tests/test_docstrings.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.11)

test_docstrings.test_missing_docstring

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7f36fb0253a0>, <MagicMock name='FluentSender()' id='139874118533840'>)
session_uuid = UUID('6f604360-40ca-48b5-9269-746be7b01886')

    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([])

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

Check failure on line 56 in tests/test_docstrings.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.10)

test_docstrings.test_missing_docstring

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7ff6c1a435b0>, <MagicMock name='FluentSender()' id='140697786128880'>)
session_uuid = UUID('59ecae2d-b90d-40d6-88e3-b18e0052d095')

    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([])

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

Check failure on line 56 in tests/test_docstrings.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.8)

test_docstrings.test_missing_docstring

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7f51615fb670>, <MagicMock name='FluentSender()' id='139987503101024'>)
session_uuid = UUID('9f9badbb-cc79-4794-805b-dee7272afd77')

    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([])

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

Check failure on line 56 in tests/test_docstrings.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.9)

test_docstrings.test_missing_docstring

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7f695e4d5a60>, <MagicMock name='FluentSender()' id='140090529332576'>)
session_uuid = UUID('2ae88c7f-c179-49c4-8d24-b385919edc41')

    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([])

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

Check failure on line 56 in tests/test_docstrings.py

View workflow job for this annotation

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 56 in tests/test_docstrings.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.9)

test_docstrings.test_missing_docstring

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x104c259d0>, <MagicMock name='FluentSender()' id='4374494368'>)
session_uuid = UUID('6cd28a45-81fd-4504-9c04-0c11062b69d0')

    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 56 in tests/test_docstrings.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.8)

test_docstrings.test_missing_docstring

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x110309820>, <MagicMock name='FluentSender()' id='4565527424'>)
session_uuid = UUID('7c030f2e-ad4c-4362-93fa-c8dc28ceaf0f')

    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 56 in tests/test_docstrings.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.11)

test_docstrings.test_missing_docstring

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x10c944ea0>, <MagicMock name='FluentSender()' id='4505858512'>)
session_uuid = UUID('02a2e946-0c9e-4809-881c-1bff557c2e9c')

    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
Expand Down
3 changes: 1 addition & 2 deletions tests/test_fixtures.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
def test_get_logger(run_mocked_pytest, session_uuid, logging_content):
runpytest, sender = run_mocked_pytest
runpytest, fluent_sender = run_mocked_pytest
result = runpytest(
f"--session-uuid={session_uuid}",
"--extend-logging",
Expand All @@ -10,7 +10,6 @@ def test_base(get_logger):
assert True
""",
)
fluent_sender = sender.return_value
call_args = fluent_sender.emit_with_time.call_args_list
result.assert_outcomes(passed=1)
assert len(call_args) > 0

Check failure on line 15 in tests/test_fixtures.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.11)

test_fixtures.test_get_logger

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7f36fb026a20>, <MagicMock name='FluentSender()' id='139874118194128'>)
session_uuid = UUID('6f604360-40ca-48b5-9269-746be7b01886')
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([])

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

Check failure on line 15 in tests/test_fixtures.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.10)

test_fixtures.test_get_logger

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7ff6c1998ca0>, <MagicMock name='FluentSender()' id='140697786526080'>)
session_uuid = UUID('59ecae2d-b90d-40d6-88e3-b18e0052d095')
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([])

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

Check failure on line 15 in tests/test_fixtures.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.8)

test_fixtures.test_get_logger

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7f516167b5e0>, <MagicMock name='FluentSender()' id='139987500288896'>)
session_uuid = UUID('9f9badbb-cc79-4794-805b-dee7272afd77')
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([])

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

Check failure on line 15 in tests/test_fixtures.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.9)

test_fixtures.test_get_logger

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7f695e548dc0>, <MagicMock name='FluentSender()' id='140090529048992'>)
session_uuid = UUID('2ae88c7f-c179-49c4-8d24-b385919edc41')
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([])

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

Check failure on line 15 in tests/test_fixtures.py

View workflow job for this annotation

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 15 in tests/test_fixtures.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.9)

test_fixtures.test_get_logger

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x104d60790>, <MagicMock name='FluentSender()' id='4374202640'>)
session_uuid = UUID('6cd28a45-81fd-4504-9c04-0c11062b69d0')
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 15 in tests/test_fixtures.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.8)

test_fixtures.test_get_logger

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x1103dfd30>, <MagicMock name='FluentSender()' id='4569089072'>)
session_uuid = UUID('7c030f2e-ad4c-4362-93fa-c8dc28ceaf0f')
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 15 in tests/test_fixtures.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.11)

test_fixtures.test_get_logger

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x10c946d40>, <MagicMock name='FluentSender()' id='4503114896'>)
session_uuid = UUID('02a2e946-0c9e-4809-881c-1bff557c2e9c')
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
Expand Down
15 changes: 5 additions & 10 deletions tests/test_reporting.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
def test_data_reporter_base_with_passed(run_mocked_pytest, session_uuid):
runpytest, sender = run_mocked_pytest
runpytest, fluent_sender = run_mocked_pytest
result = runpytest(
f"--session-uuid={session_uuid}",
pyfile="""
def test_base():
assert True
""",
)
fluent_sender = sender.return_value
call_args = fluent_sender.emit_with_time.call_args_list
result.assert_outcomes(passed=1)
assert len(call_args) > 0

Check failure on line 12 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.11)

test_reporting.test_data_reporter_base_with_passed

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7f36faef2840>, <MagicMock name='FluentSender()' id='139874114601680'>)
session_uuid = UUID('6f604360-40ca-48b5-9269-746be7b01886')

    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([])

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

Check failure on line 12 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-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 0x7ff6c15f8040>, <MagicMock name='FluentSender()' id='140697782834592'>)
session_uuid = UUID('59ecae2d-b90d-40d6-88e3-b18e0052d095')

    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([])

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

Check failure on line 12 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.8)

test_reporting.test_data_reporter_base_with_passed

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7f516124af70>, <MagicMock name='FluentSender()' id='139987498614256'>)
session_uuid = UUID('9f9badbb-cc79-4794-805b-dee7272afd77')

    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([])

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

Check failure on line 12 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.9)

test_reporting.test_data_reporter_base_with_passed

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7f695e6573a0>, <MagicMock name='FluentSender()' id='140090528277936'>)
session_uuid = UUID('2ae88c7f-c179-49c4-8d24-b385919edc41')

    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([])

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

Check failure on line 12 in tests/test_reporting.py

View workflow job for this annotation

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 12 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.9)

test_reporting.test_data_reporter_base_with_passed

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x1049e6670>, <MagicMock name='FluentSender()' id='4376281344'>)
session_uuid = UUID('6cd28a45-81fd-4504-9c04-0c11062b69d0')

    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 12 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.8)

test_reporting.test_data_reporter_base_with_passed

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x1105ca3a0>, <MagicMock name='FluentSender()' id='4569720912'>)
session_uuid = UUID('7c030f2e-ad4c-4362-93fa-c8dc28ceaf0f')

    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 12 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.11)

test_reporting.test_data_reporter_base_with_passed

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x10ccc62a0>, <MagicMock name='FluentSender()' id='4507567056'>)
session_uuid = UUID('02a2e946-0c9e-4809-881c-1bff557c2e9c')

    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
Expand All @@ -24,7 +23,7 @@ def test_base():


def test_data_reporter_xdist_passed(run_mocked_pytest, session_uuid):
runpytest, sender = run_mocked_pytest
runpytest, fluent_sender = run_mocked_pytest
result = runpytest(
"-n 2",
f"--session-uuid={session_uuid}",
Expand All @@ -48,7 +47,6 @@ def test_base_group_six():
assert True
""",
)
fluent_sender = sender.return_value
call_args = fluent_sender.emit_with_time.call_args_list
result.assert_outcomes(passed=6)
assert len(call_args) > 0

Check failure on line 52 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.11)

test_reporting.test_data_reporter_xdist_passed

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7f36faef3f60>, <MagicMock name='FluentSender()' id='139874114863824'>)
session_uuid = UUID('6f604360-40ca-48b5-9269-746be7b01886')

    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([])

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

Check failure on line 52 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-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 0x7ff6c169ef80>, <MagicMock name='FluentSender()' id='140697781407696'>)
session_uuid = UUID('59ecae2d-b90d-40d6-88e3-b18e0052d095')

    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([])

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

Check failure on line 52 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.8)

test_reporting.test_data_reporter_xdist_passed

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7f516167b700>, <MagicMock name='FluentSender()' id='139987500596384'>)
session_uuid = UUID('9f9badbb-cc79-4794-805b-dee7272afd77')

    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([])

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

Check failure on line 52 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.9)

test_reporting.test_data_reporter_xdist_passed

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7f695e1e73a0>, <MagicMock name='FluentSender()' id='140090530836976'>)
session_uuid = UUID('2ae88c7f-c179-49c4-8d24-b385919edc41')

    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([])

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

Check failure on line 52 in tests/test_reporting.py

View workflow job for this annotation

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 52 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.9)

test_reporting.test_data_reporter_xdist_passed

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x104ad0b80>, <MagicMock name='FluentSender()' id='4372744608'>)
session_uuid = UUID('6cd28a45-81fd-4504-9c04-0c11062b69d0')

    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 52 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.8)

test_reporting.test_data_reporter_xdist_passed

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x1105ca0d0>, <MagicMock name='FluentSender()' id='4566047664'>)
session_uuid = UUID('7c030f2e-ad4c-4362-93fa-c8dc28ceaf0f')

    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 52 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.11)

test_reporting.test_data_reporter_xdist_passed

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x10ccc7420>, <MagicMock name='FluentSender()' id='4509950544'>)
session_uuid = UUID('02a2e946-0c9e-4809-881c-1bff557c2e9c')

    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
Expand Down Expand Up @@ -76,7 +74,7 @@ def check_for_verdict(session_uuid, report: dict):


def test_data_reporter_base_with_xfail(run_mocked_pytest, session_uuid):
runpytest, sender = run_mocked_pytest
runpytest, fluent_sender = run_mocked_pytest
_ = runpytest(
f"--session-uuid={session_uuid}",
pyfile="""
Expand All @@ -87,7 +85,6 @@ def test_base():
assert False
""",
)
fluent_sender = sender.return_value
call_args = fluent_sender.emit_with_time.call_args_list
assert len(call_args) > 0

Check failure on line 89 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.11)

test_reporting.test_data_reporter_base_with_xfail

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7f36fad88fe0>, <MagicMock name='FluentSender()' id='139874113707536'>)
session_uuid = UUID('6f604360-40ca-48b5-9269-746be7b01886')

    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([])

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

Check failure on line 89 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-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 0x7ff6c15f9090>, <MagicMock name='FluentSender()' id='140697783590128'>)
session_uuid = UUID('59ecae2d-b90d-40d6-88e3-b18e0052d095')

    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([])

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

Check failure on line 89 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.8)

test_reporting.test_data_reporter_base_with_xfail

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7f51617c3280>, <MagicMock name='FluentSender()' id='139987503099184'>)
session_uuid = UUID('9f9badbb-cc79-4794-805b-dee7272afd77')

    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([])

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

Check failure on line 89 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.9)

test_reporting.test_data_reporter_base_with_xfail

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7f695e5481f0>, <MagicMock name='FluentSender()' id='140090526518720'>)
session_uuid = UUID('2ae88c7f-c179-49c4-8d24-b385919edc41')

    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([])

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

Check failure on line 89 in tests/test_reporting.py

View workflow job for this annotation

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 89 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.9)

test_reporting.test_data_reporter_base_with_xfail

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x1027c7ca0>, <MagicMock name='FluentSender()' id='4373976208'>)
session_uuid = UUID('6cd28a45-81fd-4504-9c04-0c11062b69d0')

    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 89 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.8)

test_reporting.test_data_reporter_base_with_xfail

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x11006ef70>, <MagicMock name='FluentSender()' id='4565140480'>)
session_uuid = UUID('7c030f2e-ad4c-4362-93fa-c8dc28ceaf0f')

    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 89 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.11)

test_reporting.test_data_reporter_base_with_xfail

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x10cb15c60>, <MagicMock name='FluentSender()' id='4509384400'>)
session_uuid = UUID('02a2e946-0c9e-4809-881c-1bff557c2e9c')

    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
args = call_args[2].args[2]
Expand All @@ -97,7 +94,7 @@ def test_base():


def test_data_reporter_base_with_exception(run_mocked_pytest, session_uuid):
runpytest, sender = run_mocked_pytest
runpytest, fluent_sender = run_mocked_pytest
_ = runpytest(
f"--session-uuid={session_uuid}",
pyfile="""
Expand All @@ -106,7 +103,6 @@ def test_base():
assert True
""",
)
fluent_sender = sender.return_value
call_args = fluent_sender.emit_with_time.call_args_list
assert len(call_args) > 0

Check failure on line 107 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.11)

test_reporting.test_data_reporter_base_with_exception

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7f36fb02f9c0>, <MagicMock name='FluentSender()' id='139874114263696'>)
session_uuid = UUID('6f604360-40ca-48b5-9269-746be7b01886')

    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([])

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

Check failure on line 107 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-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 0x7ff6c15f9e10>, <MagicMock name='FluentSender()' id='140697782018992'>)
session_uuid = UUID('59ecae2d-b90d-40d6-88e3-b18e0052d095')

    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([])

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

Check failure on line 107 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.8)

test_reporting.test_data_reporter_base_with_exception

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7f516136e1f0>, <MagicMock name='FluentSender()' id='139987502815648'>)
session_uuid = UUID('9f9badbb-cc79-4794-805b-dee7272afd77')

    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([])

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

Check failure on line 107 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.9)

test_reporting.test_data_reporter_base_with_exception

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x7f695e3d93a0>, <MagicMock name='FluentSender()' id='140090527792432'>)
session_uuid = UUID('2ae88c7f-c179-49c4-8d24-b385919edc41')

    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([])

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

Check failure on line 107 in tests/test_reporting.py

View workflow job for this annotation

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 107 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.9)

test_reporting.test_data_reporter_base_with_exception

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x104c15310>, <MagicMock name='FluentSender()' id='4378354784'>)
session_uuid = UUID('6cd28a45-81fd-4504-9c04-0c11062b69d0')

    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 107 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.8)

test_reporting.test_data_reporter_base_with_exception

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x110374550>, <MagicMock name='FluentSender()' id='4564200560'>)
session_uuid = UUID('7c030f2e-ad4c-4362-93fa-c8dc28ceaf0f')

    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 107 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.11)

test_reporting.test_data_reporter_base_with_exception

assert 0 > 0 + where 0 = len([])
Raw output
run_mocked_pytest = (<function runpytest.<locals>.runpytest at 0x10ca5d580>, <MagicMock name='FluentSender()' id='4509369040'>)
session_uuid = UUID('02a2e946-0c9e-4809-881c-1bff557c2e9c')

    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
args = call_args[2].args[2]
Expand All @@ -116,7 +112,7 @@ def test_base():


def test_data_reporter_base_with_setup_exception(run_mocked_pytest, session_uuid):
runpytest, sender = run_mocked_pytest
runpytest, fluent_sender = run_mocked_pytest
_ = runpytest(
f"--session-uuid={session_uuid}",
pyfile="""
Expand All @@ -133,7 +129,6 @@ def test_base(my_value):
assert True
""",
)
fluent_sender = sender.return_value
call_args = fluent_sender.emit_with_time.call_args_list
assert len(call_args) > 0

Check failure on line 133 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.11)

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 0x7f36fb024220>, <MagicMock name='FluentSender()' id='139874115557968'>)
session_uuid = UUID('6f604360-40ca-48b5-9269-746be7b01886')

    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([])

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

Check failure on line 133 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-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 0x7ff6c16b8160>, <MagicMock name='FluentSender()' id='140697784598192'>)
session_uuid = UUID('59ecae2d-b90d-40d6-88e3-b18e0052d095')

    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([])

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

Check failure on line 133 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.8)

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 0x7f5161339ee0>, <MagicMock name='FluentSender()' id='139987503180288'>)
session_uuid = UUID('9f9badbb-cc79-4794-805b-dee7272afd77')

    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([])

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

Check failure on line 133 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (ubuntu-latest, 3.9)

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 0x7f695e45ab80>, <MagicMock name='FluentSender()' id='140090525623488'>)
session_uuid = UUID('2ae88c7f-c179-49c4-8d24-b385919edc41')

    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([])

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

Check failure on line 133 in tests/test_reporting.py

View workflow job for this annotation

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

Check failure on line 133 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.9)

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 0x104f9aa60>, <MagicMock name='FluentSender()' id='4378539200'>)
session_uuid = UUID('6cd28a45-81fd-4504-9c04-0c11062b69d0')

    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

Check failure on line 133 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.8)

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 0x1104b71f0>, <MagicMock name='FluentSender()' id='4568549984'>)
session_uuid = UUID('7c030f2e-ad4c-4362-93fa-c8dc28ceaf0f')

    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

Check failure on line 133 in tests/test_reporting.py

View workflow job for this annotation

GitHub Actions / Test Report (macos-latest, 3.11)

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 0x10ca5d440>, <MagicMock name='FluentSender()' id='4508590416'>)
session_uuid = UUID('02a2e946-0c9e-4809-881c-1bff557c2e9c')

    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
args = call_args[2].args[2]
Expand Down

0 comments on commit 8b71a19

Please sign in to comment.