facebook / facebook/TestSlide

`and_assert_not_called` shouldn't need any behaviour defined beforehand

Aperta
#315 2 commenti 0 reazioni 1 assegnatario Rivendicata da @deathowl Vedi su GitHub
Lingua principale
Python
Stelle
149
Fork
62
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.