keras-team/keras-preprocessing

Adding tests for Exception error messages

オープン

#31 opened on 2018/08/02

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Python (453 件のフォーク)batch import
good first issuehelp wanted

Repository metrics

Stars
 (1,028 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

If any contributor is feeling up for it, it would be good to add unit tests that check that appropriate error messages are getting raised in various situations not yet covered. It seems that a few error messages were previously incorrectly formatted, because we don't have unit tests for some of these exceptions.

We have some such unit tests already, which look like this:

with pytest.raises(ValueError) as e_info:
      generator.flow((images, x_misc_err), np.arange(dsize), batch_size=3)
      assert 'All of the arrays in' in str(e_info.value)

コントリビューターガイド