should-dingus

軟件截圖:
should-dingus
軟件詳細信息:
版本: 0.3
上傳日期: 11 May 15
許可: 免費
人氣: 10

Rating: nan/5 (Total Votes: 0)

應該-dingus包含自定義匹配,因此您可以使用should_dsl與Dingus調用。
一個小警告:| should_dsl的運營商黑客並沒有真正與Dingus的__or __()順利。我認為|破解是討厭的,我不知道我喜歡should_dsl它。這是Ruby的似乎真的很給我。
你只需要導入它
>>>從should_dsl進口應should_not
>>>從dingus進口Dingus
>>>進口should_dingus
呼叫
支票上Dingus呼籲
>>>存根= Dingus('存根')
>>>高清some_function():
...存根()
...
>>> some_function |應|調用(存根)
電話還可以檢查它應該被稱為一次:
>>>高清some_function():
...存根()
...存根()
...
>>> stub.reset()
>>> some_function |應|調用(存根)
>>> stub.reset()
>>> some_function |應|調用(存根)。一旦
回溯(最新最後調用):
...
ShouldNotSatisfied:被稱為2倍,預計1
打電話甚至可以檢查參數與with_params:
>>>高清some_function():
...存根(真,郭某='tuut',braat ='AAP')
...
>>> stub.reset()
>>> some_function |應|調用(存根).with_params(真,郭某='tuut',braat ='AAP')
>>> stub.reset()
>>> some_function |應|調用(存根).with_params(真,郭某='tuut')
回溯(最新最後調用):
...
ShouldNotSatisfied:尚未調用PARAMS(真,){“郭某”:“tuut'}
呼叫with_params可以一次組合:
>>>高清some_function():
...存根(真,郭某='tuut',braat ='AAP')
...
>>> stub.reset()
>>> some_function |應|調用(存根).once.with_params(真,郭某='tuut',braat ='AAP')
>>> stub.reset()
>>> some_function |應|調用(存根).with_params(真,郭某='tuut',braat ='AAP')一旦

要求

  • 在Python的

類似的軟件

mongonose
mongonose

11 May 15

Speccer
Speccer

14 Apr 15

pytest-quickcheck
pytest-quickcheck

14 Apr 15

nose-setenv
nose-setenv

14 Apr 15

顯影劑的其他軟件 Chris Wesseling

crawlidator
crawlidator

11 May 15

意見 should-dingus

評論沒有發現
添加評論
打開圖片!