Skip to content

Deep mock method #1

@derrley

Description

@derrley

It should be easier to mock a method that's "deep" in the class's structure. While this is generally bad practice, sometimes, when mocking legacy interfaces, it is necessary.

some_mock.something.something_else.something_even_else.expect()

This could be a mode, where rather than failing, a mock method could automagically construct the thing it's trying to grab as a sub mock method

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions