Skip to content

Commit

Permalink
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 3, 2023
1 parent f57d03d commit b9f3ed0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cosmos/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@
"""
Required provider info for using Airflow config for configuration
"""


def get_provider_info():
return {
"package-name": "astronomer-cosmos", # Required
Expand Down
3 changes: 2 additions & 1 deletion tests/test_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ def test_get_logger():
assert custom_logger.handlers[0].formatter.__class__.__name__ == "CustomTTYColoredFormatter"
assert custom_string in custom_logger.handlers[0].formatter._fmt


def test_propagate_logs_conf():
if not conf.has_section("cosmos"):
conf.add_section("cosmos")
conf.set("cosmos","propagate_logs","False")
conf.set("cosmos", "propagate_logs", "False")
custom_logger = get_logger("cosmos-log")
assert custom_logger.propagate is False

0 comments on commit b9f3ed0

Please sign in to comment.