Skip to content

Make dry-run work with module methods having return types#6470

Merged
Naktibalda merged 1 commit into4.2from
fix-dry-run
Jun 16, 2022
Merged

Make dry-run work with module methods having return types#6470
Naktibalda merged 1 commit into4.2from
fix-dry-run

Conversation

@Naktibalda
Copy link
Copy Markdown
Member

Closes #6463

Copy link
Copy Markdown
Member

@TavoNiievez TavoNiievez left a comment

Choose a reason for hiding this comment

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

ask for my review when you go to integrate to the 5.0 branch, I have a couple of suggestions for typing

@Naktibalda
Copy link
Copy Markdown
Member Author

Now I think that it would be better to mock all methods of all modules to return correct types.

The main problem is that methods implemented in Tester classes are not steps, so they won't be mocked and they will call methods of real modules.

@Naktibalda
Copy link
Copy Markdown
Member Author

I updated code to mock all modules method, so dry-run works as before, but methods return correct types.

@Naktibalda Naktibalda merged commit 49b06ae into 4.2 Jun 16, 2022
@Naktibalda Naktibalda deleted the fix-dry-run branch June 16, 2022 05:15
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