Skip to content

Commit

Permalink
#3392: Remove assert for codacy/pylint.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbillowsMO committed May 23, 2024
1 parent 4ab8237 commit 18745ab
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
from bin.configure import validate_user_config_file
from esmvalcore.config._config_validators import ValidationError

# Run tests with `pytest -c dev/null`.


def test_validate_user_config_file():
mock_valid_config = {
Expand All @@ -16,8 +14,9 @@ def test_validate_user_config_file():
"exit_on_warning": True,
"output_file_type": "png",
}
result = validate_user_config_file(mock_valid_config)
assert result is None
# No assert statement is needed. If the function call errors Pytest
# considers the test failed.
validate_user_config_file(mock_valid_config)


def test_validate_user_config_file_one_validation_error():
Expand Down

0 comments on commit 18745ab

Please sign in to comment.