Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,16 @@
from mpt_api_client.exceptions import MPTAPIError
from mpt_api_client.resources.helpdesk.chat_messages import ChatMessage

pytestmark = [pytest.mark.flaky]
pytestmark = [pytest.mark.flaky, pytest.mark.skip(reason="Unskip when MPT-19696 unblocked")]


@pytest.mark.skip(reason="Unskip when MPT-19696 unblocked")
async def test_list_channel_messages(async_channel_messages_service):
result = await async_channel_messages_service.fetch_page(limit=1)

assert len(result) > 0
assert all(isinstance(message, ChatMessage) for message in result)


@pytest.mark.skip(reason="Unskip when MPT-19696 unblocked")
async def test_list_channel_messages_not_found(async_mpt_ops, invalid_channel_id):
with pytest.raises(MPTAPIError) as error:
await async_mpt_ops.helpdesk.channels.messages(invalid_channel_id).fetch_page(limit=1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,16 @@
from mpt_api_client.exceptions import MPTAPIError
from mpt_api_client.resources.helpdesk.chat_messages import ChatMessage

pytestmark = [pytest.mark.flaky]
pytestmark = [pytest.mark.flaky, pytest.mark.skip(reason="Unskip when MPT-19696 unblocked")]


@pytest.mark.skip(reason="Unskip when MPT-19696 unblocked")
def test_list_channel_messages(channel_messages_service):
result = channel_messages_service.fetch_page(limit=1)

assert len(result) > 0
assert all(isinstance(message, ChatMessage) for message in result)


@pytest.mark.skip(reason="Unskip when MPT-19696 unblocked")
def test_list_channel_messages_not_found(mpt_ops, invalid_channel_id):
with pytest.raises(MPTAPIError) as error:
mpt_ops.helpdesk.channels.messages(invalid_channel_id).fetch_page(limit=1)
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/helpdesk/channels/test_async_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from mpt_api_client.exceptions import MPTAPIError
from mpt_api_client.resources.helpdesk.channels import Channel

pytestmark = [pytest.mark.flaky, pytest.mark.skip(reason="Unskip after MPT-19124 completed")]
pytestmark = [pytest.mark.flaky, pytest.mark.skip(reason="Unskip when MPT-19696 unblocked")]


async def test_get_channel(async_mpt_ops, channel_id):
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/helpdesk/channels/test_sync_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from mpt_api_client.exceptions import MPTAPIError
from mpt_api_client.resources.helpdesk.channels import Channel

pytestmark = [pytest.mark.flaky, pytest.mark.skip(reason="Unskip after MPT-19124 completed")]
pytestmark = [pytest.mark.flaky, pytest.mark.skip(reason="Unskip when MPT-19696 unblocked")]


def test_get_channel(mpt_ops, channel_id):
Expand Down