Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amazon Bedrock - Clean up hook unit tests #38849

Merged

Conversation

ferruzzi
Copy link
Contributor

@ferruzzi ferruzzi commented Apr 8, 2024

@vincbeck and @Taragolis requested some changes to the Bedrock hooks in #38693 and I missed the opportunity to greatly simplify the related unit tests.

The fixture and the two "constants" were only used by tests which were removed after Vincent's suggestion and should have been removed when the tests were. Once they were gone, I saw a much cleaner way to consolidate the remaining tests.

Static checks for it are currently failing locally but it looks like an issue with tests/providers/common/sql/test_utils.py:45: and it looks like @Taragolis and @dondaum are maybe working on that?


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@ferruzzi ferruzzi merged commit 6abd2c7 into apache:main Apr 9, 2024
40 checks passed
@ferruzzi ferruzzi deleted the ferruzzi/bedrock/m3.5-better-hook-tests branch April 9, 2024 18:16
utkarsharma2 pushed a commit to astronomer/airflow that referenced this pull request Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers provider:amazon-aws AWS/Amazon - related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants