per page, with , order by , clip by
Results of 1 - 1 of about 1 for speak (0.001 sec.)
テストを書いて実行する 9414
テストを書いて実行する 参考 テストチュートリアル 、 テストツールリファレンス 、 テストに関する応用的なトピック も参照 ドキュメントは2つの大きなセクションに分けられます。前半のパートでは、Django でのテストの書き方を説明します。後半では、テス ... estCase ( TestCase ): def setUp ( self ): Animal . objects . create ( name = "cat" , sound = "meow" ) def test_animals_can_speak ( self ): """Animals that can speak are correctly identified""" cat = Animal . objects . get ( name = "cat" ) self . asser ... tEqual ( cat . speak (), 'The cat says "meow"' ) cat . sound = "hiss" cat . save ( update_fields = [ "sound" ]) self . assertEqual ( cat . spea ... t animals.tests.AnimalTestCase # Run just one test method $ ./manage.py test animals.tests.AnimalTestCase.test_animals_can_speak ディレクトリ下に置かれたテストを探索するために、ディレクトリのパスを指定することもできます。 $ ./manage.py test animals/ - ...
https://man.mtool.work/django/6.1/topics/testing/overview.html
PREV 1 NEXT