per page, with , order by , clip by
Results of 1 - 6 of about 6 for RequestFactory (0.035 sec.)
テストに関する高度なトピック 13215
テストに関する高度なトピック RequestFactory(リクエスト ファクトリ) class RequestFactory [ソース] RequestFactory はテストクライアントと同じ API を共有しています。しかし、ブラウザのように動作するのではなく、 RequestFactory は任意のビューの最 ... 関数をテストするのと同じ方法で テストできます。入力が完全にわかっているブラックボックスとして、特定の出力をテストできます。 RequestFactory の API は、テストクライアント API の少し制限されたサブセットです: It only has access to the HTTP methods get() , post() , ... ・ファクトリを使ったユニットテストです: from django.contrib.auth.models import AnonymousUser , User from django.test import RequestFactory , TestCase from .views import MyView , my_view class SimpleTest ( TestCase ): def setUp ( self ): # Every test needs acces ... s to the request factory. self . factory = RequestFactory () self . user = User . objects . create_user ( username = "jacob" , email = "jacob@…" , ...
https://man.mtool.work/django/6.1/topics/testing/advanced.html
Django 1.3 リリースノート 8390
Django 1.3 リリースノート March 23, 2011 Django 1.3 へようこそ! Nearly a year in the making, Django 1.3 includes quite a few new features and plenty of bug fixes and improvements to existing features. These release notes cover the new featu ... requests. These include: Improved tools for accessing and manipulating the current Site object in the sites framework . A RequestFactory for mocking requests in tests. A new test assertion -- assertNumQueries() -- making it easier to test the database activit ...
https://man.mtool.work/django/6.1/releases/1.3.html
Django 5.1 リリースノート 8390
Django 5.1 リリースノート 2024年8月7日 Django 5.1 へようこそ! このリリースノートでは、 バージョン 5.1 の新機能 と、Django 5.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... Contains() 、および assertInHTML() は、アサーションエラーメッセージにヘイスタック(haystacks)を追加するようになりました。 RequestFactory 、 AsyncRequestFactory 、 Client 、および AsyncClient クラスは、新たに query_params パラメータをサポートしました。このパラ ...
https://man.mtool.work/django/6.1/releases/5.1.html
テストツール 8390
テストツール Django は、テストを書くのに便利なツールをいくつか提供しています。 There are community-maintained solutions! Django has a vibrant ecosystem. There are testing and fixtures solutions highlighted on the Community Ecosystem page. T ... プレートが正しいコンテキストデータをちゃんと渡しているのかをチェックするために使います。 ビューの機能を直接テストするには、 RequestFactory を使用して、ルーティングとミドルウェアのレイヤーをバイパスしてください。 Selenium などのブラウザー内フレームワークは、HTML ... endered context contains 5 customers. self . assertEqual ( len ( response . context [ "customers" ]), 5 ) 参考 django.test.RequestFactory 提供されるテストケースのクラス 標準の Python ユニットテストのクラスは、 unittest.TestCase のベースクラスを拡張しています。 ...
https://man.mtool.work/django/6.1/topics/testing/tools.html
Django 1.8 リリースノート 8189
Django 1.8 リリースノート April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... m files. The condition() decorator for conditional view processing now supports the If-unmodified-since header. テスト The RequestFactory.trace() and Client.trace() methods were implemented, allowing you to create TRACE requests in your tests. The count argume ...
https://man.mtool.work/django/6.1/releases/1.8.html
Django 4.2 リリースノート 8189
Django 4.2 リリースノート 2023年4月3日 Django 4.2 へようこそ! このリリースノートでは、 バージョン 4.2 の新機能 と、Django 4.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... ポートするようになりました。 テスト test --debug-sql オプションは、SQLクエリを sqlparse でフォーマットするようになりました。 RequestFactory 、 AsyncRequestFactory 、 Client 、および AsyncClient クラスは、ヘッダー名と値の辞書を受け入れる headers パラメータをサポー ...
https://man.mtool.work/django/6.1/releases/4.2.html
PREV 1 NEXT