Skip to content

MPT-19486 refactor fixtures and unskip chat attachment tests#268

Merged
jentyk merged 1 commit intomainfrom
feat/MPT-19486
Apr 1, 2026
Merged

MPT-19486 refactor fixtures and unskip chat attachment tests#268
jentyk merged 1 commit intomainfrom
feat/MPT-19486

Conversation

@jentyk
Copy link
Copy Markdown
Member

@jentyk jentyk commented Apr 1, 2026

Closes MPT-19486

  • Refactor helpdesk case fixtures: centralize case fixtures into tests/e2e/helpdesk/conftest.py (adds session-scoped invalid_case_id, case_data/case_factory, synchronous created_case → queried_case → processed_case chain and async equivalents) and remove old tests/e2e/helpdesk/cases/conftest.py
  • Wire chat-related fixtures to created_chat: chat messages and attachments fixtures now accept created_chat and use created_chat.id for client instantiation
  • Unskip chat attachment tests (sync & async): remove pytest.skip so attachment tests for list/create/get/update/download/delete run in CI
  • Assert delete results: chat attachment delete tests now capture and assert the delete call returns None for both sync and async flows

@jentyk jentyk requested a review from a team as a code owner April 1, 2026 12:53
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 1, 2026

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Moved helpdesk case fixtures from per-directory to parent conftest and reintroduced case lifecycle fixtures there; changed chat attachment and message fixtures to accept created_chat and use its id; removed skip decorators from multiple sync/async chat attachment tests and added explicit delete assertions.

Changes

Cohort / File(s) Summary
Case fixtures relocated
tests/e2e/helpdesk/cases/conftest.py, tests/e2e/helpdesk/conftest.py
Deleted tests/e2e/helpdesk/cases/conftest.py (removed session invalid_case_id, case_factory, synchronous and async create→query→process fixtures). Added equivalent fixtures into tests/e2e/helpdesk/conftest.py, including case_data, created_case/queried_case/processed_case, async counterparts, and created_chat.
Chat attachment fixture wiring
tests/e2e/helpdesk/chats/attachment/conftest.py
Updated fixtures chat_attachments_service and async_chat_attachments_service to accept created_chat and instantiate clients with created_chat.id instead of chat_id.
Chat message fixture wiring
tests/e2e/helpdesk/chats/messages/conftest.py
Updated fixtures chat_messages_service and async_chat_messages_service to accept created_chat and use created_chat.id in service factory calls.
Unskipped attachment tests & assertions
tests/e2e/helpdesk/chats/attachment/test_sync_attachment.py, tests/e2e/helpdesk/chats/attachment/test_async_attachment.py
Removed @pytest.mark.skip(...) decorators so tests run. Converted one async create test to synchronous. In delete tests, capture delete result and assert it is None instead of ignoring return value.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Jira Issue Key In Title ✅ Passed PR title contains exactly one Jira issue key MPT-19486 in the correct MPT-XXXX format at the beginning.
Test Coverage Required ✅ Passed The PR modifies 152 code files in mpt_api_client/ and includes test file changes in tests/e2e/ directory, satisfying the requirement.
Single Commit Required ✅ Passed PR contains exactly one commit (33dbc10) that consolidates all fixture refactoring and test unskipping changes.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
tests/e2e/helpdesk/chats/attachment/test_sync_attachment.py (1)

47-50: ⚠️ Potential issue | 🟡 Minor

Pipeline failure: Missing # noqa: AAA01 on test_delete_chat_attachment.

The pipeline is failing with flake8 AAA01 violation on line 47. This test has the same pattern as test_create_chat_attachment (no explicit Act block), but is missing the # noqa: AAA01 comment. Removing the skip decorator exposed this pre-existing lint issue.

Proposed fix
-def test_delete_chat_attachment(chat_attachments_service, chat_attachment_data, pdf_fd):
+def test_delete_chat_attachment(chat_attachments_service, chat_attachment_data, pdf_fd):  # noqa: AAA01
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/e2e/helpdesk/chats/attachment/test_sync_attachment.py` around lines 47
- 50, Add the flake8 exception to the test definition for
test_delete_chat_attachment by appending "# noqa: AAA01" to the test function
line so it matches the pattern used in test_create_chat_attachment; this
suppresses the AAA01 lint for the missing explicit Act block while keeping the
current usages of chat_attachments_service, chat_attachment_data, and pdf_fd and
the delete call on created.id unchanged.
🧹 Nitpick comments (2)
tests/e2e/helpdesk/conftest.py (2)

58-59: Unused short_uuid dependency in case_factory.

The case_factory fixture declares short_uuid as a dependency but doesn't use it anywhere in the factory function.

Proposed fix

Either remove the unused dependency:

 `@pytest.fixture`
-def case_factory(short_uuid, created_queue):
+def case_factory(created_queue):

Or use it to make case data unique (if intended):

     def factory(
         title: str = "E2E Created Helpdesk Case",
         description: str = "E2E Created Helpdesk Case Description",
     ):
         return {
+            "title": f"{title} - {short_uuid}",
+            "description": f"{description} - {short_uuid}",
             "queue": {"id": created_queue.id},
             "chat": {"lastMessage": {"content": "E2E testing!!!"}},
         }
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/e2e/helpdesk/conftest.py` around lines 58 - 59, The case_factory
fixture declares an unused dependency short_uuid; either remove short_uuid from
the case_factory parameter list to eliminate the unused fixture, or actually use
it inside case_factory (e.g., incorporate short_uuid into generated case
data/IDs or the payload created by the factory) so the dependency is meaningful;
locate the fixture named case_factory in conftest.py and update its signature
and/or its case creation logic accordingly (references: case_factory,
short_uuid, created_queue).

58-69: Unused parameters title and description in case_factory.

The factory function accepts title and description parameters but never uses them in the returned dictionary. This appears to be dead code or an incomplete implementation.

Proposed fix: Either use the parameters or remove them

Option 1 - Use the parameters:

 `@pytest.fixture`
 def case_factory(short_uuid, created_queue):
     def factory(
         title: str = "E2E Created Helpdesk Case",
         description: str = "E2E Created Helpdesk Case Description",
     ):
         return {
+            "title": title,
+            "description": description,
             "queue": {"id": created_queue.id},
             "chat": {"lastMessage": {"content": "E2E testing!!!"}},
         }

     return factory

Option 2 - Remove unused parameters:

 `@pytest.fixture`
 def case_factory(short_uuid, created_queue):
-    def factory(
-        title: str = "E2E Created Helpdesk Case",
-        description: str = "E2E Created Helpdesk Case Description",
-    ):
+    def factory():
         return {
             "queue": {"id": created_queue.id},
             "chat": {"lastMessage": {"content": "E2E testing!!!"}},
         }

     return factory
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/e2e/helpdesk/conftest.py` around lines 58 - 69, The factory function
case_factory -> inner factory currently accepts title and description but
doesn't use them; either remove those unused parameters from factory(title,
description) to avoid dead code, or update the returned dict to include them
(e.g., include "title": title and "description": description in the dict
returned by factory) so the parameters are applied when tests call case_factory;
refer to the case_factory and its inner factory and the returned structure that
currently uses created_queue and chat to locate the change.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@tests/e2e/helpdesk/chats/attachment/test_sync_attachment.py`:
- Around line 47-50: Add the flake8 exception to the test definition for
test_delete_chat_attachment by appending "# noqa: AAA01" to the test function
line so it matches the pattern used in test_create_chat_attachment; this
suppresses the AAA01 lint for the missing explicit Act block while keeping the
current usages of chat_attachments_service, chat_attachment_data, and pdf_fd and
the delete call on created.id unchanged.

---

Nitpick comments:
In `@tests/e2e/helpdesk/conftest.py`:
- Around line 58-59: The case_factory fixture declares an unused dependency
short_uuid; either remove short_uuid from the case_factory parameter list to
eliminate the unused fixture, or actually use it inside case_factory (e.g.,
incorporate short_uuid into generated case data/IDs or the payload created by
the factory) so the dependency is meaningful; locate the fixture named
case_factory in conftest.py and update its signature and/or its case creation
logic accordingly (references: case_factory, short_uuid, created_queue).
- Around line 58-69: The factory function case_factory -> inner factory
currently accepts title and description but doesn't use them; either remove
those unused parameters from factory(title, description) to avoid dead code, or
update the returned dict to include them (e.g., include "title": title and
"description": description in the dict returned by factory) so the parameters
are applied when tests call case_factory; refer to the case_factory and its
inner factory and the returned structure that currently uses created_queue and
chat to locate the change.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 715f4330-7dc5-4cbc-be94-d7dfa468d363

📥 Commits

Reviewing files that changed from the base of the PR and between b800126 and f68f705.

📒 Files selected for processing (5)
  • tests/e2e/helpdesk/cases/conftest.py
  • tests/e2e/helpdesk/chats/attachment/conftest.py
  • tests/e2e/helpdesk/chats/attachment/test_async_attachment.py
  • tests/e2e/helpdesk/chats/attachment/test_sync_attachment.py
  • tests/e2e/helpdesk/conftest.py
💤 Files with no reviewable changes (1)
  • tests/e2e/helpdesk/cases/conftest.py

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (2)
tests/e2e/helpdesk/chats/attachment/test_async_attachment.py (1)

18-20: Consider adding AAA01 to Ruff's external rules configuration.

The # noqa: AAA01 comment suppresses a pytest-aaa linter rule that Ruff doesn't recognize, causing an RUF102 warning. To silence this, add AAA01 to the lint.external list in pyproject.toml.

Add to pyproject.toml under [tool.ruff.lint]:

external = ["AAA01"]
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/e2e/helpdesk/chats/attachment/test_async_attachment.py` around lines 18
- 20, The test function test_create_chat_attachment currently uses a pytest-aaa
suppression comment "# noqa: AAA01" which Ruff flags as unknown (RUF102); to
fix, add the rule ID "AAA01" to Ruff's external rules list by updating the
project's pyproject.toml under the [tool.ruff.lint] section to include AAA01 in
the external array so Ruff recognizes the suppression and the RUF102 warning
disappears.
tests/e2e/helpdesk/conftest.py (1)

58-69: case_factory has unused parameters and fixture dependency.

The title and description parameters are accepted but never used in the returned dictionary. Additionally, the short_uuid fixture dependency is unused. Either incorporate these into the payload or remove them.

♻️ Proposed fix to use or remove unused elements

Option 1 - Use the parameters:

 `@pytest.fixture`
-def case_factory(short_uuid, created_queue):
+def case_factory(created_queue):
     def factory(
         title: str = "E2E Created Helpdesk Case",
         description: str = "E2E Created Helpdesk Case Description",
     ):
         return {
+            "title": title,
+            "description": description,
             "queue": {"id": created_queue.id},
             "chat": {"lastMessage": {"content": "E2E testing!!!"}},
         }

     return factory

Option 2 - Remove unused parameters if not needed:

 `@pytest.fixture`
-def case_factory(short_uuid, created_queue):
-    def factory(
-        title: str = "E2E Created Helpdesk Case",
-        description: str = "E2E Created Helpdesk Case Description",
-    ):
+def case_factory(created_queue):
+    def factory():
         return {
             "queue": {"id": created_queue.id},
             "chat": {"lastMessage": {"content": "E2E testing!!!"}},
         }

     return factory
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/e2e/helpdesk/conftest.py` around lines 58 - 69, The case_factory
fixture currently accepts title, description and depends on short_uuid but
neither title/description nor short_uuid are used; either remove the unused
parameters and the short_uuid fixture dependency from case_factory, or
(preferred) incorporate them into the returned payload by using title and
description in the case/chat payload and using short_uuid to generate a unique
title/identifier (e.g., append short_uuid to title or include it as a field) so
the returned dict uses "title", "description" and/or a unique id along with the
existing "queue" and "chat" keys; update the fixture signature and returned dict
in the case_factory function accordingly.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@tests/e2e/helpdesk/chats/attachment/test_async_attachment.py`:
- Around line 18-20: The test function test_create_chat_attachment currently
uses a pytest-aaa suppression comment "# noqa: AAA01" which Ruff flags as
unknown (RUF102); to fix, add the rule ID "AAA01" to Ruff's external rules list
by updating the project's pyproject.toml under the [tool.ruff.lint] section to
include AAA01 in the external array so Ruff recognizes the suppression and the
RUF102 warning disappears.

In `@tests/e2e/helpdesk/conftest.py`:
- Around line 58-69: The case_factory fixture currently accepts title,
description and depends on short_uuid but neither title/description nor
short_uuid are used; either remove the unused parameters and the short_uuid
fixture dependency from case_factory, or (preferred) incorporate them into the
returned payload by using title and description in the case/chat payload and
using short_uuid to generate a unique title/identifier (e.g., append short_uuid
to title or include it as a field) so the returned dict uses "title",
"description" and/or a unique id along with the existing "queue" and "chat"
keys; update the fixture signature and returned dict in the case_factory
function accordingly.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: de4ae8c1-432a-4c6c-b336-9eae29edd167

📥 Commits

Reviewing files that changed from the base of the PR and between f68f705 and 462386d.

📒 Files selected for processing (5)
  • tests/e2e/helpdesk/cases/conftest.py
  • tests/e2e/helpdesk/chats/attachment/conftest.py
  • tests/e2e/helpdesk/chats/attachment/test_async_attachment.py
  • tests/e2e/helpdesk/chats/attachment/test_sync_attachment.py
  • tests/e2e/helpdesk/conftest.py
💤 Files with no reviewable changes (1)
  • tests/e2e/helpdesk/cases/conftest.py
🚧 Files skipped from review as they are similar to previous changes (1)
  • tests/e2e/helpdesk/chats/attachment/conftest.py

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
tests/e2e/helpdesk/chats/attachment/test_sync_attachment.py (1)

18-21: Invalid # noqa rule code for Ruff.

AAA01 is a flake8-aaa rule code, not recognized by Ruff. Either add "AAA01" to lint.external in pyproject.toml, or remove the comment if flake8-aaa isn't part of the linting pipeline.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/e2e/helpdesk/chats/attachment/test_sync_attachment.py` around lines 18
- 21, The inline noqa comment using rule code "AAA01" in the test function
test_create_chat_attachment is not recognized by Ruff; either remove the invalid
"# noqa: AAA01" from the test declaration (function test_create_chat_attachment)
or register the flake8-aaa rule by adding "AAA01" under lint.external in
pyproject.toml so Ruff knows to ignore it; locate the test in
tests/e2e/helpdesk/chats/attachment/test_sync_attachment.py and update either
the test header or the project lint config accordingly, keeping references to
created_chat_attachment and chat_attachment_data intact.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@tests/e2e/helpdesk/conftest.py`:
- Around line 58-69: The fixture case_factory currently injects short_uuid but
never uses it and defines factory parameters title and description that are not
included in the returned dict; either remove the unused short_uuid parameter
from the case_factory signature or reference it inside factory, and if title and
description are intended, add them into the returned dictionary (e.g., include
"title": title and "description": description) so factory uses its parameters;
update the case_factory and nested factory definitions accordingly (look for the
case_factory fixture and the inner factory function).

---

Nitpick comments:
In `@tests/e2e/helpdesk/chats/attachment/test_sync_attachment.py`:
- Around line 18-21: The inline noqa comment using rule code "AAA01" in the test
function test_create_chat_attachment is not recognized by Ruff; either remove
the invalid "# noqa: AAA01" from the test declaration (function
test_create_chat_attachment) or register the flake8-aaa rule by adding "AAA01"
under lint.external in pyproject.toml so Ruff knows to ignore it; locate the
test in tests/e2e/helpdesk/chats/attachment/test_sync_attachment.py and update
either the test header or the project lint config accordingly, keeping
references to created_chat_attachment and chat_attachment_data intact.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: abbe6227-38ae-4677-b683-f2b590f87254

📥 Commits

Reviewing files that changed from the base of the PR and between 462386d and 11c2acc.

📒 Files selected for processing (6)
  • tests/e2e/helpdesk/cases/conftest.py
  • tests/e2e/helpdesk/chats/attachment/conftest.py
  • tests/e2e/helpdesk/chats/attachment/test_async_attachment.py
  • tests/e2e/helpdesk/chats/attachment/test_sync_attachment.py
  • tests/e2e/helpdesk/chats/messages/conftest.py
  • tests/e2e/helpdesk/conftest.py
💤 Files with no reviewable changes (1)
  • tests/e2e/helpdesk/cases/conftest.py
🚧 Files skipped from review as they are similar to previous changes (1)
  • tests/e2e/helpdesk/chats/attachment/conftest.py

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (2)
tests/e2e/helpdesk/chats/attachment/test_async_attachment.py (1)

18-18: Ruff flags AAA01 as an unrecognized rule code.

The AAA01 rule is from the pytest-aaa plugin (Arrange-Act-Assert pattern checker), not a native Ruff rule. To suppress the RUF102 warning, add "AAA01" to the lint.external list in pyproject.toml.

This is a minor configuration issue and doesn't affect test execution.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/e2e/helpdesk/chats/attachment/test_async_attachment.py` at line 18,
Ruff is flagging the AAA01 ignore in test_create_chat_attachment because AAA01
is from pytest-aaa (not a built-in Ruff rule); open pyproject.toml and add
"AAA01" to the lint.external list so Ruff recognizes external rule codes (e.g.,
ensure lint.external includes "AAA01"), then keep the noqa on the test function
def test_create_chat_attachment(async_created_chat_attachment,
chat_attachment_data) to suppress RUF102 warnings.
tests/e2e/helpdesk/chats/attachment/test_sync_attachment.py (1)

18-18: Same AAA01 external rule code issue.

Same as the async test file—consider adding "AAA01" to lint.external in pyproject.toml to suppress RUF102 warnings across both files.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/e2e/helpdesk/chats/attachment/test_sync_attachment.py` at line 18, The
test function test_create_chat_attachment in
tests/e2e/helpdesk/chats/attachment/test_sync_attachment.py triggers the
external rule AAA01; to suppress the RUF102 warnings consistently with the async
counterpart, add "AAA01" to the lint.external list in pyproject.toml (so the
linter treats that external rule as allowed across both sync and async test
files).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@tests/e2e/helpdesk/chats/attachment/test_async_attachment.py`:
- Line 18: Ruff is flagging the AAA01 ignore in test_create_chat_attachment
because AAA01 is from pytest-aaa (not a built-in Ruff rule); open pyproject.toml
and add "AAA01" to the lint.external list so Ruff recognizes external rule codes
(e.g., ensure lint.external includes "AAA01"), then keep the noqa on the test
function def test_create_chat_attachment(async_created_chat_attachment,
chat_attachment_data) to suppress RUF102 warnings.

In `@tests/e2e/helpdesk/chats/attachment/test_sync_attachment.py`:
- Line 18: The test function test_create_chat_attachment in
tests/e2e/helpdesk/chats/attachment/test_sync_attachment.py triggers the
external rule AAA01; to suppress the RUF102 warnings consistently with the async
counterpart, add "AAA01" to the lint.external list in pyproject.toml (so the
linter treats that external rule as allowed across both sync and async test
files).

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 752303a0-bf67-46bb-a791-d8693500f8ff

📥 Commits

Reviewing files that changed from the base of the PR and between 11c2acc and eb39d5f.

📒 Files selected for processing (6)
  • tests/e2e/helpdesk/cases/conftest.py
  • tests/e2e/helpdesk/chats/attachment/conftest.py
  • tests/e2e/helpdesk/chats/attachment/test_async_attachment.py
  • tests/e2e/helpdesk/chats/attachment/test_sync_attachment.py
  • tests/e2e/helpdesk/chats/messages/conftest.py
  • tests/e2e/helpdesk/conftest.py
💤 Files with no reviewable changes (1)
  • tests/e2e/helpdesk/cases/conftest.py
🚧 Files skipped from review as they are similar to previous changes (3)
  • tests/e2e/helpdesk/chats/messages/conftest.py
  • tests/e2e/helpdesk/chats/attachment/conftest.py
  • tests/e2e/helpdesk/conftest.py

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 1, 2026

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
tests/e2e/helpdesk/chats/attachment/test_async_attachment.py (1)

18-18: Address the invalid # noqa: AAA01 directive.

Ruff reports AAA01 is not a recognized rule code. This appears to be from the pytest-aaa plugin. Per the static analysis hint, add AAA01 to the lint.external configuration in pyproject.toml to suppress this warning, or remove the directive if pytest-aaa is not in use.

Option 1: Add to pyproject.toml
[tool.ruff.lint]
external = ["AAA01"]
Option 2: Remove the directive if pytest-aaa is not used
-def test_create_chat_attachment(async_created_chat_attachment, chat_attachment_data):  # noqa: AAA01
+def test_create_chat_attachment(async_created_chat_attachment, chat_attachment_data):
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/e2e/helpdesk/chats/attachment/test_async_attachment.py` at line 18, The
test function test_create_chat_attachment contains an invalid Ruff noqa
directive "# noqa: AAA01" (AAA01 is not a Ruff rule); either remove the
directive from the test function definition (test_create_chat_attachment) if
pytest-aaa is not used, or add "AAA01" to Ruff's external rules by updating the
project config (add AAA01 to the tool.ruff.lint.external list in pyproject.toml)
so Ruff recognizes the pytest-aaa code.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@tests/e2e/helpdesk/chats/attachment/test_async_attachment.py`:
- Line 18: The test function test_create_chat_attachment contains an invalid
Ruff noqa directive "# noqa: AAA01" (AAA01 is not a Ruff rule); either remove
the directive from the test function definition (test_create_chat_attachment) if
pytest-aaa is not used, or add "AAA01" to Ruff's external rules by updating the
project config (add AAA01 to the tool.ruff.lint.external list in pyproject.toml)
so Ruff recognizes the pytest-aaa code.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: c76b8b21-7f82-449f-ab30-eeba7f21f811

📥 Commits

Reviewing files that changed from the base of the PR and between eb39d5f and 33dbc10.

📒 Files selected for processing (6)
  • tests/e2e/helpdesk/cases/conftest.py
  • tests/e2e/helpdesk/chats/attachment/conftest.py
  • tests/e2e/helpdesk/chats/attachment/test_async_attachment.py
  • tests/e2e/helpdesk/chats/attachment/test_sync_attachment.py
  • tests/e2e/helpdesk/chats/messages/conftest.py
  • tests/e2e/helpdesk/conftest.py
💤 Files with no reviewable changes (1)
  • tests/e2e/helpdesk/cases/conftest.py
🚧 Files skipped from review as they are similar to previous changes (2)
  • tests/e2e/helpdesk/chats/messages/conftest.py
  • tests/e2e/helpdesk/chats/attachment/conftest.py

@jentyk jentyk merged commit 78ed68a into main Apr 1, 2026
4 checks passed
@jentyk jentyk deleted the feat/MPT-19486 branch April 1, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants