facebook / facebook/TestSlide

`and_assert_not_called` shouldn't need any behaviour defined beforehand

オープン
#315 コメント 2 件 リアクション 0 件 担当者 1 名 @deathowl が担当を希望しています GitHub で見る
主要言語
Python
スター
149
フォーク
62
PR マージ指標
30日以内にマージされた PR はありません

説明

**I'm using `TestSlide` version:** 2.6.3

**Given:**
```python
self.mock_callable(foo, 'bar').and_assert_not_called()
```
should work. I currently need:
```python
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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。