Skip to content

Commit 8af9de9

Browse files
RobPasMuepre-commit-ci[bot]pyansys-ci-bot
authored
feat: add modeler.exit() method (#1375)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 0c1f9b8 commit 8af9de9

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

doc/changelog.d/1375.added.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
add ``modeler.exit()`` method

src/ansys/geometry/core/modeler.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,17 @@ def read_existing_design(self) -> "Design":
217217

218218
def close(self) -> None:
219219
"""Access the client's close method."""
220-
return self.client.close()
220+
self.client.close()
221+
222+
def exit(self) -> None:
223+
"""Access the client's close method.
224+
225+
Notes
226+
-----
227+
This method is calling the same method as
228+
:func:`close() <ansys.geometry.core.modeler.Modeler.close>`.
229+
"""
230+
self.close()
221231

222232
def _upload_file(
223233
self,

tests/integration/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def modeler(docker_instance):
132132
yield modeler
133133

134134
# Cleanup on exit
135-
modeler.close()
135+
modeler.exit()
136136
assert modeler.client.is_closed
137137

138138

0 commit comments

Comments
 (0)