-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
refactor: move x/{moduleName}/test{ModuleName}
to x/{moduleName}/testutil
#13427
Conversation
@@ -138,9 +138,6 @@ func (suite *IntegrationTestSuite) SetupTest() { | |||
suite.ctx = app.BaseApp.NewContext(false, tmproto.Header{Time: time.Now()}) | |||
suite.fetchStoreKey = app.UnsafeFindStoreKey | |||
|
|||
// suite.Require().NoError(suite.accountKeeper.SetParams(suite.ctx, authtypes.DefaultParams())) | |||
suite.Require().NoError(suite.bankKeeper.SetParams(suite.ctx, types.DefaultParams())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to set params
here, given that we use an app.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can give the package a different name to make auto imports easier
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #13427 +/- ##
==========================================
- Coverage 54.12% 53.98% -0.14%
==========================================
Files 645 641 -4
Lines 55276 55017 -259
==========================================
- Hits 29917 29701 -216
+ Misses 22963 22931 -32
+ Partials 2396 2385 -11
|
0cdb88d
to
37acc26
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kind of thought testslashing
, etc was a good naming improvement when it happened (although I was resistant at first) but since it's not consistent and to avoid bike shedding we can go with this.
This should be refactor!
because it's breaking.
Description
Closes: #XXXX
Noticed that while doing #13420. It makes no sense to have two testing packages.
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change