ferruzzi commented on code in PR #59532:
URL: https://github.com/apache/airflow/pull/59532#discussion_r2625070516
##########
airflow-core/tests/unit/core/test_configuration.py:
##########
@@ -188,6 +188,95 @@ def test_team_config_file(self):
assert test_conf.get("celery", "result_backend") == "FOO"
assert test_conf.get("celery", "result_backend",
team_name="unit_test_team") == "BAR"
+ def test_getsection_with_team_name(self):
+ """Test getsection with team_name parameter."""
+ test_config = """[celery]
+result_backend = FOO
+worker_concurrency = 16
+
+[unit_test_team=celery]
+result_backend = BAR
+worker_concurrency = 32
+"""
Review Comment:
Trivial non-blocking nitpick, I recently noticed we have `textwrap.dedent`
in a few other places which allows us to keep python-friendly indentation in
cases like this
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]