タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

TDDとpythonに関するt-wadaのブックマーク (3)

  • oreilly.com

    More than 5,000 organizations trust O’Reilly to help their teams learn the technologies of today—and be ready for what’s next. We can help yours too. It’s time to upskill your teams to leverage generative AI LLMs aren’t just the future of work—they’re the now. Learning to use large language models is vital for every business and every knowledge worker. O’Reilly has all the resources your team need

    oreilly.com
    t-wada
    t-wada 2013/06/05
    ほほう!
  • How to write and report assertions in tests — pytest documentation

    t-wada
    t-wada 2013/01/08
    Python のテスティングフレームワーク py.test には Groovy の Power Assert のような機能があり、アサーション失敗時の情報量を大幅に増やすことができる。
  • Python で TDD してみる - methaneのブログ

    RSpec の入門とその一歩先へ がとてもよい記事だったので、 Python で写経させてもらいました。 https://github.com/methane/pytest-tut Ruby コミュニティと Python コミュニティの考え方の違いも見えて面白いと思います。 環境は Python 3.3 で、実行には py.test コマンドを使いましたが、 py.test の機能は特に使っていないので nose でもなんでも大丈夫です。 ファイルの作成 まずは空の実装とテストを作ります。 message_filter.py class MessageFilter: pass message_filter_test.py 最初のテストを書く py.test は .should といったメソッドを勝手に生やしたりはしません。普通に assert 文を書きましょう。 --- a/messege

    Python で TDD してみる - methaneのブログ
    t-wada
    t-wada 2013/01/08
    "Python のコミュニティでは簡潔さや可読性(自然言語のように読めるかではなく、コードを理解するのにかかる時間)を大幅に削減できないなら、機能(覚えること)を増やさないという文化があるように思います"
  • 1