per page, with , order by , clip by
Results of 1 - 10 of about 12 for RequestFactory (0.007 sec.)
テストに関する高度なトピック — Django 6.1 ドキュメント 12876
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » テストに関する高度なトピック ¶ RequestFactory(リクエスト ファクトリ) ¶ class RequestFactory [ソース] ¶ RequestFactory はテストクライアントと同じ A ... PI を共有しています。しかし、ブラウザのように動作するのではなく、 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 ...
https://man.mtool.work/django/6.1/topics/testing/advanced.html
テストに関する高度なトピック — Django 6.1 ドキュメント 12699
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » テストに関する高度なトピック ¶ RequestFactory(リクエスト ファクトリ) ¶ class RequestFactory [ソース] ¶ RequestFactory はテストクライアントと同じ A ... PI を共有しています。しかし、ブラウザのように動作するのではなく、 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 ...
https://man.mtool.work/django/6.1/topics/testing/advanced.html
Django 1.3 リリースノート — Django 6.1 ドキュメント 8118
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 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 plen ... 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 リリースノート — Django 6.1 ドキュメント 8118
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 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
テストツール — Django 6.1 ドキュメント 8118
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » テストツール ¶ Django は、テストを書くのに便利なツールをいくつか提供しています。 There are community-maintained solutions! Django has a vibrant ecos ... プレートが正しいコンテキストデータをちゃんと渡しているのかをチェックするために使います。 ビューの機能を直接テストするには、 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.3 リリースノート — Django 6.1 ドキュメント 8118
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 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 plen ... 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 リリースノート — Django 6.1 ドキュメント 8118
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 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
テストツール — Django 6.1 ドキュメント 8118
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » テストツール ¶ Django は、テストを書くのに便利なツールをいくつか提供しています。 There are community-maintained solutions! Django has a vibrant ecos ... プレートが正しいコンテキストデータをちゃんと渡しているのかをチェックするために使います。 ビューの機能を直接テストするには、 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 リリースノート — Django 6.1 ドキュメント 7941
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.8 リリースノート ¶ April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレー ... 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 リリースノート — Django 6.1 ドキュメント 7941
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 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 2 NEXT