Skip to content

Comments

Make amazon provider tests compatible with latest moto#27177

Merged
pierrejeambrun merged 1 commit intoapache:mainfrom
Taragolis:fix-compatible-with-latest-moto
Oct 21, 2022
Merged

Make amazon provider tests compatible with latest moto#27177
pierrejeambrun merged 1 commit intoapache:mainfrom
Taragolis:fix-compatible-with-latest-moto

Conversation

@Taragolis
Copy link
Contributor

This should fix broken main and remove some depreciation warnings.

  • mock_dynamodb2 decorator deprecated by mock_dynamodb in moto >= 3.1.0 and remove in moto >= 4
  • Since Multi-Account support moto.core.ACCOUNT_ID replaced by moto.core.DEFAULT_ACCOUNT_ID

@Taragolis Taragolis requested a review from eladkal as a code owner October 21, 2022 07:51
@boring-cyborg boring-cyborg bot added area:providers provider:amazon AWS/Amazon - related issues labels Oct 21, 2022
Copy link
Contributor

@vincbeck vincbeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It makes the code even cleaner. Like that

Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice !

I started to observe CI failure on one of my PR lately #26872 with ACCOUNT_ID and dynamo related stuff. I didn't have time to take a look, but hope this will fix that 🤞 (or maybe I just made a bad rebase 😂)

Copy link
Contributor

@ferruzzi ferruzzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix, thanks!

@pierrejeambrun pierrejeambrun merged commit 804aeee into apache:main Oct 21, 2022
@Taragolis Taragolis deleted the fix-compatible-with-latest-moto branch January 14, 2023 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:amazon AWS/Amazon - related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants