facebook / facebook/TestSlide

Improve StrictMock & mock_callable exception messages

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

説明

Currently we raise things like `UnexpectedCallArguments` telling about "behavior". This confuses a lot of users constantly.

@karlodwyer suggested doing things like:

- UnexpectedCallArguments > UnmatchedCallReceived
- explain there's no configured mocks to answer this call
- explain which calls the mock is configured to accept.

Le's apply this "make it clearer mindset" to all existing StrictMock & mock_callable exceptions.

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

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

評価

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

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

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