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

imp(ibc-testkit): deprecate MockContext multiple init methods #1047

Merged
merged 4 commits into from
Jan 19, 2024

Conversation

rnbguy
Copy link
Collaborator

@rnbguy rnbguy commented Jan 18, 2024

Closes: #1042

Description

Removes multiple default initializers from MockContextand refactors the existing tests.


PR author checklist:

  • Added changelog entry, using unclog.
  • Added tests.
  • Linked to GitHub issue.
  • Updated code comments and documentation (e.g., docs/).
  • Tagged one reviewer who will be the one responsible for shepherding this PR.
  • Rebase to main

Reviewer checklist:

  • Reviewed Files changed in the GitHub PR explorer.
  • Manually tested (in case integration/unit/mock tests are absent).

@rnbguy rnbguy changed the title refactor(ibc-testkit): deprecate MockContext multiple init methods refactor(ibc-testkit): deprecate MockContext multiple init methods Jan 18, 2024
@rnbguy rnbguy marked this pull request as draft January 18, 2024 15:37
@rnbguy rnbguy force-pushed the 1042-deprecate-mockcontext-new-methods branch from ed8e305 to 59332d7 Compare January 18, 2024 15:52
@rnbguy rnbguy marked this pull request as ready for review January 18, 2024 15:52
@rnbguy rnbguy changed the title refactor(ibc-testkit): deprecate MockContext multiple init methods imp(ibc-testkit): deprecate MockContext multiple init methods Jan 18, 2024
Copy link
Member

@Farhad-Shabani Farhad-Shabani left a comment

Choose a reason for hiding this comment

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

Thank you @rnbguy . I just made a bit of trim and removed redundant method calls.

@Farhad-Shabani Farhad-Shabani added this to the 0.50.0 milestone Jan 19, 2024
@rnbguy rnbguy merged commit ee92645 into main Jan 19, 2024
10 checks passed
@rnbguy rnbguy deleted the 1042-deprecate-mockcontext-new-methods branch January 19, 2024 13:35
@rnbguy
Copy link
Collaborator Author

rnbguy commented Jan 19, 2024

Thanks @Farhad-Shabani. I have merged it on main. Depending on the next release, we may need to update the deprecation-since-version. 🙂

Farhad-Shabani added a commit that referenced this pull request Sep 9, 2024
* deprecate default arg init methods in MockContext

* refactor tests

* add changelog

* chore: trim redundant method calls, opting for default values

---------

Co-authored-by: Farhad Shabani <farhad.shabani@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

imp(ibc-testkit): Deprecate MockContext::new* methods and their uses in favor of MockContextConfig
2 participants