Skip to content

Commit 949b0bf

Browse files
committed
test(helpdesk): mark chat tests as skipped pending MPT-19124 completion
1 parent d5b28dc commit 949b0bf

File tree

8 files changed

+48
-0
lines changed

8 files changed

+48
-0
lines changed

tests/e2e/helpdesk/chats/attachment/test_async_attachment.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,27 @@
55
pytestmark = [pytest.mark.flaky]
66

77

8+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
89
async def test_list_chat_attachments(async_chat_attachments_service, async_created_chat_attachment):
910
result = await async_chat_attachments_service.fetch_page(limit=1)
1011

1112
assert len(result) > 0
1213

1314

15+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
1416
def test_create_chat_attachment(async_created_chat_attachment, chat_attachment_data): # noqa: AAA01
1517
assert async_created_chat_attachment.id is not None
1618
assert async_created_chat_attachment.to_dict().get("name") == chat_attachment_data["name"]
1719

1820

21+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
1922
async def test_get_chat_attachment(async_chat_attachments_service, async_created_chat_attachment):
2023
result = await async_chat_attachments_service.get(async_created_chat_attachment.id)
2124

2225
assert result.id == async_created_chat_attachment.id
2326

2427

28+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
2529
async def test_update_chat_attachment(
2630
async_chat_attachments_service, async_created_chat_attachment, short_uuid
2731
):
@@ -36,6 +40,7 @@ async def test_update_chat_attachment(
3640
assert result.to_dict().get("name") == updated_name
3741

3842

43+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
3944
async def test_download_chat_attachment(
4045
async_chat_attachments_service, async_created_chat_attachment
4146
):
@@ -47,19 +52,22 @@ async def test_download_chat_attachment(
4752
assert result.file_contents is not None
4853

4954

55+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
5056
async def test_delete_chat_attachment(async_chat_attachments_service, chat_attachment_data, pdf_fd):
5157
created = await async_chat_attachments_service.create(chat_attachment_data, file=pdf_fd)
5258

5359
await async_chat_attachments_service.delete(created.id)
5460

5561

62+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
5663
async def test_get_chat_attachment_not_found(
5764
async_chat_attachments_service, invalid_chat_attachment_id
5865
):
5966
with pytest.raises(MPTAPIError, match=r"404 Not Found"):
6067
await async_chat_attachments_service.get(invalid_chat_attachment_id)
6168

6269

70+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
6371
async def test_update_chat_attachment_not_found(
6472
async_chat_attachments_service, invalid_chat_attachment_id
6573
):
@@ -70,6 +78,7 @@ async def test_update_chat_attachment_not_found(
7078
)
7179

7280

81+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
7382
async def test_delete_chat_attachment_not_found(
7483
async_chat_attachments_service, invalid_chat_attachment_id
7584
):

tests/e2e/helpdesk/chats/attachment/test_sync_attachment.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,27 @@
55
pytestmark = [pytest.mark.flaky]
66

77

8+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
89
def test_list_chat_attachments(chat_attachments_service, created_chat_attachment):
910
result = chat_attachments_service.fetch_page(limit=1)
1011

1112
assert len(result) > 0
1213

1314

15+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
1416
def test_create_chat_attachment(created_chat_attachment, chat_attachment_data): # noqa: AAA01
1517
assert created_chat_attachment.id is not None
1618
assert created_chat_attachment.to_dict().get("name") == chat_attachment_data["name"]
1719

1820

21+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
1922
def test_get_chat_attachment(chat_attachments_service, created_chat_attachment):
2023
result = chat_attachments_service.get(created_chat_attachment.id)
2124

2225
assert result.id == created_chat_attachment.id
2326

2427

28+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
2529
def test_update_chat_attachment(chat_attachments_service, created_chat_attachment, short_uuid):
2630
updated_name = f"e2e updated attachment - {short_uuid}"
2731

@@ -34,23 +38,27 @@ def test_update_chat_attachment(chat_attachments_service, created_chat_attachmen
3438
assert result.to_dict().get("name") == updated_name
3539

3640

41+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
3742
def test_download_chat_attachment(chat_attachments_service, created_chat_attachment):
3843
result = chat_attachments_service.download(created_chat_attachment.id, accept="application/pdf")
3944

4045
assert result.file_contents is not None
4146

4247

48+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
4349
def test_delete_chat_attachment(chat_attachments_service, chat_attachment_data, pdf_fd): # noqa: AAA01
4450
created = chat_attachments_service.create(chat_attachment_data, file=pdf_fd)
4551

4652
chat_attachments_service.delete(created.id)
4753

4854

55+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
4956
def test_get_chat_attachment_not_found(chat_attachments_service, invalid_chat_attachment_id):
5057
with pytest.raises(MPTAPIError, match=r"404 Not Found"):
5158
chat_attachments_service.get(invalid_chat_attachment_id)
5259

5360

61+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
5462
def test_update_chat_attachment_not_found(chat_attachments_service, invalid_chat_attachment_id):
5563
with pytest.raises(MPTAPIError, match=r"404 Not Found"):
5664
chat_attachments_service.update(
@@ -59,6 +67,7 @@ def test_update_chat_attachment_not_found(chat_attachments_service, invalid_chat
5967
)
6068

6169

70+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
6271
def test_delete_chat_attachment_not_found(chat_attachments_service, invalid_chat_attachment_id):
6372
with pytest.raises(MPTAPIError, match=r"404 Not Found"):
6473
chat_attachments_service.delete(invalid_chat_attachment_id)

tests/e2e/helpdesk/chats/links/test_async_links.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,20 @@
55
pytestmark = [pytest.mark.flaky]
66

77

8+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
89
async def test_list_chat_links(async_chat_links_service):
910
result = await async_chat_links_service.fetch_page(limit=1)
1011

1112
assert len(result) > 0
1213

1314

15+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
1416
def test_create_chat_link(async_created_chat_link, chat_link_data): # noqa: AAA01
1517
assert async_created_chat_link.id is not None
1618
assert async_created_chat_link.to_dict().get("uri") == chat_link_data["uri"]
1719

1820

21+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
1922
async def test_update_chat_link_name(async_chat_links_service, async_created_chat_link, short_uuid):
2023
new_name = f"e2e updated link - {short_uuid}"
2124

@@ -28,12 +31,14 @@ async def test_update_chat_link_name(async_chat_links_service, async_created_cha
2831
assert result.to_dict().get("name") == new_name
2932

3033

34+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
3135
async def test_delete_chat_link(async_chat_links_service, async_created_chat_link):
3236
result = async_created_chat_link
3337

3438
await async_chat_links_service.delete(result.id)
3539

3640

41+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
3742
async def test_update_chat_link_not_found(async_chat_links_service, invalid_chat_link_id):
3843
with pytest.raises(MPTAPIError, match=r"404 Not Found"):
3944
await async_chat_links_service.update(
@@ -42,6 +47,7 @@ async def test_update_chat_link_not_found(async_chat_links_service, invalid_chat
4247
)
4348

4449

50+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
4551
async def test_delete_chat_link_not_found(async_chat_links_service, invalid_chat_link_id):
4652
with pytest.raises(MPTAPIError, match=r"404 Not Found"):
4753
await async_chat_links_service.delete(invalid_chat_link_id)

tests/e2e/helpdesk/chats/links/test_sync_links.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,20 @@
55
pytestmark = [pytest.mark.flaky]
66

77

8+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
89
def test_list_chat_links(chat_links_service):
910
result = chat_links_service.fetch_page(limit=1)
1011

1112
assert len(result) > 0
1213

1314

15+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
1416
def test_create_chat_link(created_chat_link, chat_link_data): # noqa: AAA01
1517
assert created_chat_link.id is not None
1618
assert created_chat_link.to_dict().get("uri") == chat_link_data["uri"]
1719

1820

21+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
1922
def test_update_chat_link_name(chat_links_service, created_chat_link, short_uuid):
2023
new_name = f"e2e updated link - {short_uuid}"
2124

@@ -25,17 +28,20 @@ def test_update_chat_link_name(chat_links_service, created_chat_link, short_uuid
2528
assert result.to_dict().get("name") == new_name
2629

2730

31+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
2832
def test_delete_chat_link(chat_links_service, created_chat_link):
2933
result = created_chat_link
3034

3135
chat_links_service.delete(result.id)
3236

3337

38+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
3439
def test_update_chat_link_not_found(chat_links_service, invalid_chat_link_id):
3540
with pytest.raises(MPTAPIError, match=r"404 Not Found"):
3641
chat_links_service.update(invalid_chat_link_id, {"name": "updated name"})
3742

3843

44+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
3945
def test_delete_chat_link_not_found(chat_links_service, invalid_chat_link_id):
4046
with pytest.raises(MPTAPIError, match=r"404 Not Found"):
4147
chat_links_service.delete(invalid_chat_link_id)

tests/e2e/helpdesk/chats/messages/test_async_messages.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,20 @@
55
pytestmark = [pytest.mark.flaky]
66

77

8+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
89
async def test_list_chat_messages(async_chat_messages_service):
910
result = await async_chat_messages_service.fetch_page(limit=1)
1011

1112
assert len(result) > 0
1213

1314

15+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
1416
def test_create_chat_message(async_created_chat_message, chat_message_data): # noqa: AAA01
1517
assert async_created_chat_message.id is not None
1618
assert async_created_chat_message.to_dict().get("content") == chat_message_data["content"]
1719

1820

21+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
1922
async def test_update_chat_message_visibility(
2023
async_chat_messages_service, async_created_chat_message
2124
):
@@ -27,12 +30,14 @@ async def test_update_chat_message_visibility(
2730
assert result.id == async_created_chat_message.id
2831

2932

33+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
3034
async def test_delete_chat_message(async_chat_messages_service, async_created_chat_message):
3135
result = async_created_chat_message
3236

3337
await async_chat_messages_service.delete(result.id)
3438

3539

40+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
3641
async def test_update_chat_message_not_found(async_chat_messages_service, invalid_chat_message_id):
3742
with pytest.raises(MPTAPIError, match=r"404 Not Found"):
3843
await async_chat_messages_service.update(
@@ -41,6 +46,7 @@ async def test_update_chat_message_not_found(async_chat_messages_service, invali
4146
)
4247

4348

49+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
4450
async def test_delete_chat_message_not_found(async_chat_messages_service, invalid_chat_message_id):
4551
with pytest.raises(MPTAPIError, match=r"404 Not Found"):
4652
await async_chat_messages_service.delete(invalid_chat_message_id)

tests/e2e/helpdesk/chats/messages/test_sync_messages.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,40 @@
55
pytestmark = [pytest.mark.flaky]
66

77

8+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
89
def test_list_chat_messages(chat_messages_service):
910
result = chat_messages_service.fetch_page(limit=1)
1011

1112
assert len(result) > 0
1213

1314

15+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
1416
def test_create_chat_message(created_chat_message, chat_message_data): # noqa: AAA01
1517
assert created_chat_message.id is not None
1618
assert created_chat_message.to_dict().get("content") == chat_message_data["content"]
1719

1820

21+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
1922
def test_update_chat_message_visibility(chat_messages_service, created_chat_message):
2023
result = chat_messages_service.update(created_chat_message.id, {"visibility": "Public"})
2124

2225
assert result.id == created_chat_message.id
2326

2427

28+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
2529
def test_delete_chat_message(chat_messages_service, created_chat_message):
2630
result = created_chat_message
2731

2832
chat_messages_service.delete(result.id)
2933

3034

35+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
3136
def test_update_chat_message_not_found(chat_messages_service, invalid_chat_message_id):
3237
with pytest.raises(MPTAPIError, match=r"404 Not Found"):
3338
chat_messages_service.update(invalid_chat_message_id, {"visibility": "Public"})
3439

3540

41+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
3642
def test_delete_chat_message_not_found(chat_messages_service, invalid_chat_message_id):
3743
with pytest.raises(MPTAPIError, match=r"404 Not Found"):
3844
chat_messages_service.delete(invalid_chat_message_id)

tests/e2e/helpdesk/chats/test_async_chats.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
pytestmark = [pytest.mark.flaky]
66

77

8+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
89
async def test_get_chat(async_mpt_ops, chat_id):
910
service = async_mpt_ops.helpdesk.chats
1011

@@ -13,6 +14,7 @@ async def test_get_chat(async_mpt_ops, chat_id):
1314
assert result.id == chat_id
1415

1516

17+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
1618
async def test_list_chats(async_mpt_ops):
1719
service = async_mpt_ops.helpdesk.chats
1820

@@ -21,6 +23,7 @@ async def test_list_chats(async_mpt_ops):
2123
assert len(result) > 0
2224

2325

26+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
2427
async def test_update_chat(async_mpt_ops, chat_id, short_uuid):
2528
service = async_mpt_ops.helpdesk.chats
2629
new_description = f"e2e update {short_uuid}"

tests/e2e/helpdesk/chats/test_sync_chats.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
pytestmark = [pytest.mark.flaky]
66

77

8+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
89
def test_get_chat(mpt_ops, chat_id):
910
service = mpt_ops.helpdesk.chats
1011

@@ -13,6 +14,7 @@ def test_get_chat(mpt_ops, chat_id):
1314
assert result.id == chat_id
1415

1516

17+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
1618
def test_list_chats(mpt_ops):
1719
service = mpt_ops.helpdesk.chats
1820

@@ -21,6 +23,7 @@ def test_list_chats(mpt_ops):
2123
assert len(result) > 0
2224

2325

26+
@pytest.mark.skip(reason="Unskip after MPT-19124 completed")
2427
def test_update_chat(mpt_ops, chat_id, short_uuid):
2528
service = mpt_ops.helpdesk.chats
2629
new_description = f"e2e update {short_uuid}"

0 commit comments

Comments
 (0)