per page, with , order by , clip by
Results of 1 - 7 of about 7 for assertRedirects (0.006 sec.)
Django 1.9.6 リリースノート 12614
Django 1.9.6 リリースノート May 2, 2016 Django 1.9.6 では、1.9.5 にあったいくつかのバグを修正しました。 バグ修正 Added support for relative path redirects to the test client and to SimpleTestCase.assertRedirects() because Django 1.9 no long ...
https://man.mtool.work/django/6.1/releases/1.9.6.html
テストツール 10414
テストツール Django は、テストを書くのに便利なツールをいくつか提供しています。 There are community-maintained solutions! Django has a vibrant ecosystem. There are testing and fixtures solutions highlighted on the Community Ecosystem page. T ... ce or absence of HTML fragments assertTemplateUsed() Template usage in a response assertURLEqual() That two URLs are equal assertRedirects() That an HTTP redirect occurred assertHTMLEqual() HTML fragment equality assertInHTML() HTML fragment containment assertX ... se ): def test_login ( self ): # First check for the default behavior response = self . client . get ( "/sekrit/" ) self . assertRedirects ( response , "/accounts/login/?next=/sekrit/" ) # Then override the LOGIN_URL setting with self . settings ( LOGIN_URL = " ... /other/login/" ): response = self . client . get ( "/sekrit/" ) self . assertRedirects ( response , "/other/login/?next=/sekrit/" ) この例では、 with ブロック内のコードに対して、 LOGIN_URL 設定をオーバーライド ...
https://man.mtool.work/django/6.1/topics/testing/tools.html
Django 1.7 リリースノート 9087
Django 1.7 リリースノート September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した ... unner , which facilitate overriding the way tests are collected and run. The fetch_redirect_response argument was added to assertRedirects() . Since the test client can't fetch externals URLs, this allows you to use assertRedirects with redirects that aren't pa ... rt of your Django app. Correct handling of scheme when making comparisons in assertRedirects() . The secure argument was added to all the request methods of Client . If True , the request will be made through HTTPS. ...
https://man.mtool.work/django/6.1/releases/1.7.html
Django 1.9 リリースノート 9087
Django 1.9 リリースノート December 1, 2015 Django 1.9 へようこそ! このリリースノートでは、 バージョン 1.9 の新機能 と、Django 1.8 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機 ... ecognizing the actual practice of user agents, almost all of which support them. Consequently, the expected URLs passed to assertRedirects should generally no longer include the scheme and domain part of the URLs. For example, self.assertRedirects(response, 'ht ... tp://testserver/some-url/') should be replaced by self.assertRedirects(response, '/some-url/') (unless the redirection specifically contained an absolute URL). In the rare case that you need th ...
https://man.mtool.work/django/6.1/releases/1.9.html
Django 2.2 リリースノート 8197
Django 2.2 リリースノート April 1, 2019 Django 2.2 へようこそ! このリリースノートでは、 バージョン 2.2 の新機能 と、Django 2.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... テスト The new SimpleTestCase.assertURLEqual() assertion checks for a given URL, ignoring the ordering of the query string. assertRedirects() uses the new assertion. The test Client now supports automatic JSON serialization of list and tuple data when content_ty ...
https://man.mtool.work/django/6.1/releases/2.2.html
Django 1.6 リリースノート 7306
Django 1.6 リリースノート 注釈 Dedicated to Malcolm Tredinnick On March 17, 2013, the Django project and the free software community lost a very dear friend and developer. Malcolm was a long-time contributor to Django, a model community mem ... is happens, simply remove the URL quoting from your code. You will also have to replace special characters in URLs used in assertRedirects() with their encoded versions. Storage of IP addresses in the comments app The comments app now uses a GenericIPAddressFie ...
https://man.mtool.work/django/6.1/releases/1.6.html
索引 6870
索引 記号 | _ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ア | イ | ク | コ | シ | ス | テ | ハ | ヒ | フ | メ | モ | ロ | 具 | 国 | 環 | 翻 | 表 | 言 | 長 記号 -- dbshell コマン ... tCase のメソッド) assertQuerySetEqual() (TransactionTestCase のメソッド) assertRaisesMessage() (SimpleTestCase のメソッド) assertRedirects() (SimpleTestCase のメソッド) assertTemplateNotUsed() (SimpleTestCase のメソッド) assertTemplateUsed() (SimpleTestCase のメ ...
https://man.mtool.work/django/6.1/genindex.html
PREV 1 NEXT