From a0d971f42fade307b127ab6aeda04406d62217db Mon Sep 17 00:00:00 2001 From: hpohekar Date: Fri, 6 Jun 2025 13:29:26 +0530 Subject: [PATCH 1/2] refactor: Run each test in its own directory --- tests/conftest.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 549d2ad9d8a2..b54d8b1d1acb 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -170,12 +170,18 @@ def pytest_collection_finish(session): @pytest.fixture(autouse=True) def run_before_each_test( - monkeypatch: pytest.MonkeyPatch, request: pytest.FixtureRequest -) -> None: + tmp_path, + monkeypatch: pytest.MonkeyPatch, + request: pytest.FixtureRequest, +): monkeypatch.setenv("PYFLUENT_TEST_NAME", request.node.name) monkeypatch.setenv("PYFLUENT_CODEGEN_SKIP_BUILTIN_SETTINGS", "1") pyfluent.CONTAINER_MOUNT_SOURCE = pyfluent.EXAMPLES_PATH pyfluent.CONTAINER_MOUNT_TARGET = pyfluent.EXAMPLES_PATH + original_cwd = os.getcwd() + monkeypatch.chdir(tmp_path) + yield + os.chdir(original_cwd) class Helpers: From df30b907217964165c087f0abe0742250de7cdf6 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Fri, 6 Jun 2025 08:02:18 +0000 Subject: [PATCH 2/2] chore: adding changelog file 4115.miscellaneous.md [dependabot-skip] --- doc/changelog.d/4115.miscellaneous.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/4115.miscellaneous.md diff --git a/doc/changelog.d/4115.miscellaneous.md b/doc/changelog.d/4115.miscellaneous.md new file mode 100644 index 000000000000..1232bfb8ef86 --- /dev/null +++ b/doc/changelog.d/4115.miscellaneous.md @@ -0,0 +1 @@ +Run each test in its own directory \ No newline at end of file