"""Unit-Tests ohne DB: Zusammenführung Session-Co vs. Gruppe."""
import pytest

from routers.training_planning import effective_co_trainer_profile_ids_for_merge


@pytest.mark.parametrize(
    "unit_side,group_side,expected",
    [
        (None, [10, 22], [10, 22]),
        (None, None, []),
        ([], [10, 22], []),
        ([7, "8", 7], None, [7, 8]),
    ],
)
def test_effective_co_trainer_profile_ids_for_merge(unit_side, group_side, expected):
    assert effective_co_trainer_profile_ids_for_merge(unit_side, group_side) == expected
