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

Update mockito to 5.12.0 and fix failing tests #4711

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

CDRussell
Copy link
Member

@CDRussell CDRussell commented Jul 2, 2024

Task/Issue URL: https://app.asana.com/0/1207701481229686/1207716076931920/f

Description

Updates Mockito to latest version. This lets us run the tests on all Android APIs instead of being limited to ~API 30 like we are now.

Steps to test this PR

  • Make sure CI is all green
  • Make sure you can run tests locally

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @CDRussell and the rest of your teammates on Graphite Graphite

}

private fun fakeIntent(): Intent {
return Intent().also { it.addFlags(FLAG_ACTIVITY_NEW_TASK) }
Copy link
Member Author

Choose a reason for hiding this comment

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

needed otherwise ContextCompat.startActivities complains about the activity being started outside of an activity context. (in production, it's already using an activity context so no changes needed to prod code)

@CDRussell CDRussell marked this pull request as ready for review July 2, 2024 17:06
Copy link
Contributor

@marcosholgado marcosholgado left a comment

Choose a reason for hiding this comment

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

LGTM

@CDRussell CDRussell merged commit 389f19d into develop Jul 3, 2024
8 checks passed
@CDRussell CDRussell deleted the feature/craig/update_library_mockito branch July 3, 2024 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants