Skip to content

refactor: added the test for the preprocessing doc#5002

Open
mayankansys wants to merge 6 commits intomainfrom
refactor/preprocessing_doc
Open

refactor: added the test for the preprocessing doc#5002
mayankansys wants to merge 6 commits intomainfrom
refactor/preprocessing_doc

Conversation

@mayankansys
Copy link
Collaborator

Context

To reduce ambiguity and prevent regressions in the pre/post, a focused test was needed.

Change Summary

Added one test function only in test_launcher.py

Impact

Affects launcher test coverage in test_launcher.py

Copilot AI review requested due to automatic review settings March 18, 2026 13:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a focused regression test to reduce ambiguity around how FluentMode.PRE_POST is interpreted when determining the session class created by the launcher.

Changes:

  • Added a new unit test asserting FluentMode.PRE_POST.get_fluent_value() maps to the same session type as FluentMode.SOLVER.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions github-actions bot added the documentation Documentation related (improving, adding, etc) label Mar 18, 2026
@mayankansys mayankansys changed the title Added the test for the Preprocessing doc added the test for the Preprocessing doc Mar 18, 2026
@mayankansys mayankansys changed the title added the test for the Preprocessing doc refeator: added the test for the Preprocessing doc Mar 18, 2026
@mayankansys mayankansys changed the title refeator: added the test for the Preprocessing doc refeator: added the test for the preprocessing doc Mar 18, 2026
Copilot AI review requested due to automatic review settings March 20, 2026 04:51
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a regression test to reduce ambiguity around the PRE/POST Fluent mode mapping, and updates the user-guide text describing pre/post mode behavior.

Changes:

  • Add a test asserting FluentMode.PRE_POST maps to the same session type as FluentMode.SOLVER.
  • Update documentation wording for the “Pre/post mode” section.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
tests/test_launcher.py Adds a focused regression test for PRE/POST mode mapping.
doc/source/user_guide/session/launching_ansys_fluent.rst Updates the pre/post mode description text in the user guide.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mayankansys mayankansys changed the title refeator: added the test for the preprocessing doc refactor: added the test for the preprocessing doc Mar 20, 2026
@github-actions github-actions bot added the enhancement Improve any current implemented feature label Mar 20, 2026
@mayankansys mayankansys enabled auto-merge (squash) March 20, 2026 04:56
Copilot AI review requested due to automatic review settings March 20, 2026 06:12
@mayankansys mayankansys review requested due to automatic review settings March 20, 2026 06:12
@mayankansys mayankansys disabled auto-merge March 20, 2026 06:18
@mayankansys mayankansys enabled auto-merge (squash) March 20, 2026 08:31
Comment on lines +95 to +98
def test_pre_post_mode_maps_to_solver_session_type():
assert (
FluentMode.PRE_POST.get_fluent_value() is FluentMode.SOLVER.get_fluent_value()
)
Copy link
Collaborator

@seanpearsonuk seanpearsonuk Mar 20, 2026

Choose a reason for hiding this comment

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

This test only asserts a mapping that's baked into the design: it doesn't verify any behavioural constraint of pre-post mode. We should already have a test covering the actual constraints (no solver execution, etc.) from when the mode was introduced. If this assertion is worth keeping, it fits naturally there rather than as a standalone test.

Co-authored-by: Sean Pearson <93727996+seanpearsonuk@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 20, 2026 09:13
@mayankansys mayankansys disabled auto-merge March 20, 2026 09:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -0,0 +1 @@
Added the test for the preprocessing doc
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

PR description says only a single test was added in test_launcher.py, but this PR also changes user guide documentation and adds a changelog fragment. Please update the PR description (or revert unrelated edits) so the stated scope matches the actual changes.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation related (improving, adding, etc) enhancement Improve any current implemented feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants