o-nikolas commented on code in PR #38178: URL: https://github.com/apache/airflow/pull/38178#discussion_r1526772221
########## tests/providers/amazon/aws/operators/test_base_aws.py: ########## @@ -171,3 +177,40 @@ class SoWrongOperator(AwsBaseOperator): error_match = r"Class attribute 'SoWrongOperator.aws_hook_class' is not a subclass of AwsGenericHook" with pytest.raises(AttributeError, match=error_match): SoWrongOperator(task_id="fake-task-id") + + @pytest.mark.parametrize( + "region, region_name, expected_region_name", + [ + pytest.param("ca-west-1", None, "ca-west-1", id="region-only"), + pytest.param("us-west-1", "us-west-1", "us-west-1", id="non-ambiguous-params"), Review Comment: Glad to hear the case is covered already. I think it's still worth adding a test case for the mapped case IMHO, but up to you. -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org