Skip to content

Commit a2b4f6b

Browse files
committed
test: skip slow notification category tests due to performance issue MPT-13785
1 parent a55338c commit a2b4f6b

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

tests/e2e/notifications/categories/test_async_categories.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ async def async_created_category(async_mpt_ops, category_data):
1717
print(f"TEARDOWN - Unable to delete category {category.id}: {error.title}") # noqa: WPS421
1818

1919

20+
@pytest.mark.skip(reason="async_created_category kills performance due to MPT-13785")
2021
def test_create_category(async_created_category, category_data): # noqa: AAA01
2122
assert async_created_category.name == category_data["name"]
2223
assert async_created_category.description == category_data["description"]
2324

2425

26+
@pytest.mark.skip(reason="async_created_category kills performance due to MPT-13785")
2527
async def test_get_category(async_mpt_vendor, async_created_category):
2628
service = async_mpt_vendor.notifications.categories
2729

@@ -31,6 +33,7 @@ async def test_get_category(async_mpt_vendor, async_created_category):
3133
assert result.name == async_created_category.name
3234

3335

36+
@pytest.mark.skip(reason="async_created_category kills performance due to MPT-13785")
3437
async def test_update_category(async_mpt_ops, async_created_category):
3538
service = async_mpt_ops.notifications.categories
3639
update_data = {
@@ -44,6 +47,7 @@ async def test_update_category(async_mpt_ops, async_created_category):
4447
assert result.description == "Async updated description"
4548

4649

50+
@pytest.mark.skip(reason="async_created_category kills performance due to MPT-13785")
4751
async def test_list_categories(async_mpt_vendor, async_created_category):
4852
service = async_mpt_vendor.notifications.categories
4953

@@ -52,6 +56,7 @@ async def test_list_categories(async_mpt_vendor, async_created_category):
5256
assert any(category.id == async_created_category.id for category in result)
5357

5458

59+
@pytest.mark.skip(reason="async_created_category kills performance due to MPT-13785")
5560
async def test_filter_categories(async_mpt_vendor, async_created_category):
5661
service = async_mpt_vendor.notifications.categories
5762

@@ -64,6 +69,7 @@ async def test_filter_categories(async_mpt_vendor, async_created_category):
6469
assert result[0].id == async_created_category.id
6570

6671

72+
@pytest.mark.skip(reason="async_created_category kills performance due to MPT-13785")
6773
async def test_publish_category(async_mpt_ops, async_created_category):
6874
service = async_mpt_ops.notifications.categories
6975
unpublish_note_data = {"note": "Unpublishing category for async testing"}
@@ -75,6 +81,7 @@ async def test_publish_category(async_mpt_ops, async_created_category):
7581
assert result.id == async_created_category.id
7682

7783

84+
@pytest.mark.skip(reason="async_created_category kills performance due to MPT-13785")
7885
async def test_unpublish_category(async_mpt_ops, async_created_category):
7986
service = async_mpt_ops.notifications.categories
8087
unpublish_note_data = {"note": "Unpublishing category for async testing"}
@@ -91,6 +98,7 @@ async def test_category_not_found(async_mpt_vendor, invalid_category_id):
9198
await service.get(invalid_category_id)
9299

93100

101+
@pytest.mark.skip(reason="async_created_category kills performance due to MPT-13785")
94102
async def test_delete_category(async_mpt_ops, async_created_category):
95103
service = async_mpt_ops.notifications.categories
96104

tests/e2e/notifications/categories/test_sync_categories.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ def created_category(mpt_ops, category_data):
1717
print(f"TEARDOWN - Unable to delete category {category.id}: {error.title}") # noqa: WPS421
1818

1919

20+
@pytest.mark.skip(reason="created_category kills performance due to MPT-13785")
2021
def test_create_category(created_category, category_data):
2122
assert created_category.name == category_data["name"] # act
2223

2324
assert created_category.description == category_data["description"]
2425

2526

27+
@pytest.mark.skip(reason="created_category kills performance due to MPT-13785")
2628
def test_get_category(mpt_client, created_category):
2729
service = mpt_client.notifications.categories
2830

@@ -32,6 +34,7 @@ def test_get_category(mpt_client, created_category):
3234
assert result.name == created_category.name
3335

3436

37+
@pytest.mark.skip(reason="created_category kills performance due to MPT-13785")
3538
def test_update_category(mpt_ops, created_category):
3639
service = mpt_ops.notifications.categories
3740
update_data = {
@@ -45,6 +48,7 @@ def test_update_category(mpt_ops, created_category):
4548
assert result.description == "Updated description"
4649

4750

51+
@pytest.mark.skip(reason="created_category kills performance due to MPT-13785")
4852
def test_list_categories(mpt_client, created_category):
4953
service = mpt_client.notifications.categories
5054

@@ -53,6 +57,7 @@ def test_list_categories(mpt_client, created_category):
5357
assert any(category.id == created_category.id for category in result)
5458

5559

60+
@pytest.mark.skip(reason="created_category kills performance due to MPT-13785")
5661
def test_filter_categories(mpt_client, created_category):
5762
service = mpt_client.notifications.categories
5863

@@ -62,6 +67,7 @@ def test_filter_categories(mpt_client, created_category):
6267
assert result[0].id == created_category.id
6368

6469

70+
@pytest.mark.skip(reason="created_category kills performance due to MPT-13785")
6571
def test_publish_category(mpt_ops, created_category):
6672
service = mpt_ops.notifications.categories
6773
unpublish_note_data = {"note": "Unpublishing category for testing"}
@@ -73,6 +79,7 @@ def test_publish_category(mpt_ops, created_category):
7379
assert result.id == created_category.id
7480

7581

82+
@pytest.mark.skip(reason="created_category kills performance due to MPT-13785")
7683
def test_unpublish_category(mpt_ops, created_category):
7784
service = mpt_ops.notifications.categories
7885
unpublish_note_data = {"note": "Unpublishing category for testing"}
@@ -89,6 +96,7 @@ def test_category_not_found(mpt_client, invalid_category_id):
8996
service.get(invalid_category_id)
9097

9198

99+
@pytest.mark.skip(reason="created_category kills performance due to MPT-13785")
92100
def test_delete_category(mpt_ops, created_category):
93101
service = mpt_ops.notifications.categories
94102

0 commit comments

Comments
 (0)