Skip to content

and_assert_not_called shouldn't need any behaviour defined beforehand #315

@Piojo

Description

@Piojo

I'm using TestSlide version: 2.6.3

Given:

self.mock_callable(foo, 'bar').and_assert_not_called()

should work. I currently need:

self.mock_callable(foo, 'bar').to_return_value(None).and_assert_not_called()

but since I don't want it called I don't want any return value defined!!

I know I could simply leave the callable unmocked and let StrictMock fail in such an event, but the error message is confusing - I really want it to notify that there is an unwanted call, instead of something I forgot to mock away.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions