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

x/mint: make all fixtures in keeper package use KeeperTestSuite #2001

Merged
merged 4 commits into from
Jul 9, 2022

Conversation

stackman27
Copy link
Contributor

Closes: #1920

What is the purpose of the change

Consolidate a single KeeperTestSuite with all the relevant set up code in suite_test.go in mint module. Make all test fixtures in keeper_test utilize this test suite.

Brief Changelog

n/a

Testing and Verifying

n/a

Documentation and Release Note

  • Does this pull request introduce a new feature or user-facing behavior changes? (no)
  • Is a relevant changelog entry added to the Unreleased section in CHANGELOG.md? (no)
  • How is the feature or change documented? (not applicable / specification (x/<module>/spec/) / Osmosis docs repo / not documented)

@stackman27 stackman27 requested a review from a team July 8, 2022 06:26
x/mint/keeper/keeper_test.go Outdated Show resolved Hide resolved
x/mint/keeper/keeper_test.go Outdated Show resolved Hide resolved
x/mint/keeper/grpc_query_test.go Outdated Show resolved Hide resolved
x/mint/keeper/hooks_test.go Outdated Show resolved Hide resolved
x/mint/keeper/hooks_test.go Outdated Show resolved Hide resolved
@stackman27
Copy link
Contributor Author

Thank you @p0mvn for the comments! Addressed 87d274d

Copy link
Member

@p0mvn p0mvn left a comment

Choose a reason for hiding this comment

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

LGTM once suite.Require.Equal(...) -> suite.Equal(...) conversion is made, nice work!

x/mint/keeper/hooks_test.go Outdated Show resolved Hide resolved
@stackman27
Copy link
Contributor Author

LGTM once suite.Require.Equal(...) -> suite.Equal(...) conversion is made, nice work!

Good to go now!

@stackman27 stackman27 requested a review from p0mvn July 9, 2022 02:14
@p0mvn p0mvn merged commit 00e17c6 into osmosis-labs:main Jul 9, 2022
@p0mvn p0mvn added the A:backport/v10.x backport patches to v10.x branch label Jul 19, 2022
mergify bot pushed a commit that referenced this pull request Jul 19, 2022
* only one test suite in mint module

* Romans comments

* roman comments v2

* romansv3 comments

(cherry picked from commit 00e17c6)

# Conflicts:
#	x/mint/keeper/grpc_query_test.go
#	x/mint/keeper/hooks_test.go
p0mvn added a commit that referenced this pull request Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:backport/v10.x backport patches to v10.x branch C:x/mint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

x/mint: make all fixtures in keeper package use KeeperTestSuite
2 participants