-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add a method to set console loggers' level (#2886)
* fix: Add a method to set console loggers' level * fix: Add a method to set console loggers' level * fix: Add a method to set console loggers' level * fix: Add a method to set console loggers' level * fix: Add a method to set console loggers' level * test: disable pytest-xdist to investigate ci issue * test: disable test_fluent_freeze_kill * fix: PR suggestions * test: test_set_console_logging_level passing only in standalone * ci: remove previous docker containers * ci: remove previous docker containers * test: test_set_console_logging_level passing only in standalone * test: disable test_launch_remote_instance * test: robustness issue
- Loading branch information
Showing
9 changed files
with
92 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import logging | ||
|
||
import pytest | ||
|
||
import ansys.fluent.core as pyfluent | ||
|
||
|
||
@pytest.mark.standalone | ||
def test_set_console_logging_level(caplog): | ||
settings_logger = logging.getLogger("pyfluent.settings_api") | ||
settings_logger.warning("ABC") | ||
assert len(caplog.records) == 1 | ||
caplog.clear() | ||
pyfluent.set_console_logging_level("ERROR") | ||
settings_logger.warning("ABC") | ||
assert len(caplog.records) == 0 |