Skip to content

Commit 1bd1cb7

Browse files
TEST: Add settings for local testing (#6834)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 5dc5887 commit 1bd1cb7

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

doc/changelog.d/6834.test.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add settings for local testing

tests/conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@
9595
# Add current path to sys.path for imports
9696
sys.path.append(str(local_path))
9797

98+
# NOTE: Additional environment configuration for error handling when the tests are
99+
# run locally and not in a CI environment.
100+
if "PYAEDT_LOCAL_SETTINGS_PATH" not in os.environ:
101+
settings.enable_error_handler = False
102+
settings.release_on_exception = False
103+
98104

99105
def generate_random_string(length):
100106
"""Generate a random string of specified length."""

0 commit comments

Comments
 (0)