o-nikolas commented on code in PR #59532:
URL: https://github.com/apache/airflow/pull/59532#discussion_r2625079639
##########
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:
Fair enough, looks like the module uses a mixture of both. Perhaps a bit
more the classic no-indent approach. But I can update my changes to use
textwrap.dedent to not contribute to the problem.
--
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]