Skip to content

Commit 220aece

Browse files
committed
minor refactoring
1 parent 68cd5ce commit 220aece

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

src/ansys/fluent/core/launcher/fluent_container.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,6 @@ def dict_to_str(dict: dict) -> str:
123123
"""Converts the dict to string while hiding the 'environment' argument from the dictionary,
124124
if the environment variable 'PYFLUENT_HIDE_LOG_SECRETS' is '1'.
125125
This is useful for logging purposes, to avoid printing sensitive information such as license server details.
126-
127-
Parameters
128-
----------
129-
dict : dict
130-
The container dictionary to be converted to string.
131-
Returns
132-
-------
133-
string
134-
Nicely formatted string representation of the dictionary, with the 'environment' key removed if hiding secrets.
135126
"""
136127

137128
if "environment" in dict and os.getenv("PYFLUENT_HIDE_LOG_SECRETS") == "1":

tests/test_session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -657,11 +657,11 @@ def test_app_utilities_new_and_old(mixing_elbow_settings_session):
657657

658658
assert not solver._app_utilities.is_solution_data_available()
659659

660-
tmp_dir = tempfile.mkdtemp(dir=pyfluent.EXAMPLES_PATH)
660+
tmp_path = tempfile.mkdtemp(dir=pyfluent.EXAMPLES_PATH)
661661

662662
# when running in a container, only the randomly generated folder name will be seen
663663
# the full paths will be different between host and container
664-
tmp_folder = Path(tmp_dir).parts[-1]
664+
tmp_folder = Path(tmp_path).parts[-1]
665665

666666
solver.chdir(tmp_folder)
667667

0 commit comments

Comments
 (0)