per page, with , order by , clip by
Results of 1 - 10 of about 13 for LiveServerTestCase (0.006 sec.)
Django 1.11.2 リリースノート 11859
Django 1.11.2 リリースノート June 1, 2017 Django 1.11.2 adds a minor feature and fixes several bugs in 1.11.1. Also, the latest string translations from Transifex are incorporated. Minor feature The new LiveServerTestCase.port attribute rea ...
https://man.mtool.work/django/6.1/releases/1.11.2.html
テストツール 11859
テストツール Django は、テストを書くのに便利なツールをいくつか提供しています。 There are community-maintained solutions! Django has a vibrant ecosystem. There are testing and fixtures solutions highlighted on the Community Ecosystem page. T ... 能性をテストするために使います。また、Django はこれらのフレームワーク向けの特別なサポートも提供しています。詳細については、 LiveServerTestCase のセクションを読んでください。 包括的なテストスイートを実現するには、これらすべてのタイプのテストを組み合わせて行うべきです ... ( mail . outbox [ 0 ] . subject , "Contact Form" ) self . assertEqual ( mail . outbox [ 0 ] . body , "I like your site" ) LiveServerTestCase class LiveServerTestCase [ソース] LiveServerTestCase は TransactionTestCase とほぼ同じですが、セットアップ時に実際の Djang ... トに割り当てるために使われるポート 0 にバインドします。サーバーの URL はテスト中は self.live_server_url でアクセスできます。 LiveServerTestCase の使用方法を紹介するために、Selenium テストを書いてみましょう。最初に、 selenium パッケージをインストールする必要があります ...
https://man.mtool.work/django/6.1/topics/testing/tools.html
静的ファイル (画像、JavaScript、CSS など) を管理する 11296
静的ファイル (画像、JavaScript、CSS など) を管理する Websites generally need to serve additional files such as images, JavaScript, or CSS. In Django, we refer to these files as "static files". Django provides django.contrib.staticfiles to h ... など) ではなくローカル ( media/ など) の場合にのみ動作します。 テスト ビルトインのテストクライアント (たとえば、ビルトインの LiveServerTestCase ) ではなく実際の HTTP リクエストを使用してテストを実行している場合、テスト環境が現実の環境をできるだけ忠実に再現できるよう ... に、他のコンテンツと同じように静的アセットも配信する必要があります。しかし、 LiveServerTestCase はとても基本的な静的ファイル配信機能しかないため、 staticfiles アプリケーションの探索機能はなく、すでに静的コンテンツは ST ... TIC_ROOT に集められていることを前提にしています。 このため、 staticfiles は独自の django.contrib.staticfiles.testing.StaticLiveServerTestCase を同梱しています。これは組み込みのサブクラスで、開発時に DEBUG = True を指定した場合と非常によく似た方法で、つまり collect ...
https://man.mtool.work/django/6.1/howto/static-files/
Django 1.11 リリースノート 10187
Django 1.11 リリースノート April 4, 2017 Django 1.11 へようこそ! このリリースノートでは、Django 1.10 および過去のバージョンからアップグレードする際に知っておくべきいくつかの 後方互換性のない変更 に加え、 新機能 を説明しています。 いくつかの ... L 9.2 is the last version to support it. Also, the minimum supported version of psycopg2 is increased from 2.4.5 to 2.5.4. LiveServerTestCase binds to port zero Rather than taking a port range and iterating to find a free port, LiveServerTestCase binds to port zer ... is no longer used, and as it's also no longer used, the manage.py test --liveserver option is removed. If you need to bind LiveServerTestCase to a specific port, use the port attribute added in Django 1.11.2. django.contrib.auth や i18n ビューでの安全でないリダイレ ...
https://man.mtool.work/django/6.1/releases/1.11.html
Django 1.7 リリースノート 8533
Django 1.7 リリースノート September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した ... t or use ABSOLUTE_URL_OVERRIDES if you want a URL for your user. The static asset-serving functionality of the django.test.LiveServerTestCase class has been simplified: Now it's only able to serve content already present in STATIC_ROOT when tests are run. The abil ... ives in the staticfiles application (the one actually in charge of such feature): django.contrib.staticfiles.testing.StaticLiveServerTestCase . In other words, LiveServerTestCase itself is less powerful but at the same time has less magic. Rationale behind this is ...
https://man.mtool.work/django/6.1/releases/1.7.html
staticfiles アプリ 7970
staticfiles アプリ django.contrib.staticfiles は、各アプリケーション(と、あらかじめ指定した他の場所)から静的ファイルを収集し、本番環境で簡単に提供できるように一か所にまとめます。 参考 静的ファイルアプリの導入と活用例については、 静的ファイ ... であり、 本番環境で使用するべきではありません 。 「ライブテスト」をサポートするための特別なテストケース class testing. StaticLiveServerTestCase この unittest の TestCase サブクラスは django.test.LiveServerTestCase を拡張しています。 親と同様に、テスト対象のコードを実 ...
https://man.mtool.work/django/6.1/ref/contrib/staticfiles.html
Django 1.5 リリースノート 7970
Django 1.5 リリースノート February 26, 2013 Django 1.5 へようこそ! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 1.4 or older versions. We'v ... hasn't been ported to Python 3 yet, including: the MySQL database backend (depends on MySQLdb) ImageField (depends on PIL) LiveServerTestCase (depends on Selenium WebDriver) Further, Django's more than a web framework; it's an ecosystem of pluggable components. At ...
https://man.mtool.work/django/6.1/releases/1.5.html
テストを書いて実行する 7970
テストを書いて実行する 参考 テストチュートリアル 、 テストツールリファレンス 、 テストに関する応用的なトピック も参照 ドキュメントは2つの大きなセクションに分けられます。前半のパートでは、Django でのテストの書き方を説明します。後半では、テス ... 内では無効です。加えて、トランザクションがサポートされるバックエンドのみで有効です (最も重要な例外は MyISAM です)。これは、 LiveServerTestCase や StaticLiveServerTestCase といった TransactionTestCase に依存するテストに関しても同様です。 Djangoは、 TestCase や Trans ...
https://man.mtool.work/django/6.1/topics/testing/overview.html
はじめての Django アプリ作成、その 5 7425
はじめての Django アプリ作成、その 5 このチュートリアルは チュートリアル 4 の続きです。Web 投票アプリケーションが完成したので、今度は自動テストを作ってみましょう。 困ったときは: このチュートリアルの実行に問題がある場合は、FAQ の Getting Hel ... るで本物の人間がブラウザを操作しているかのように見えるんです! Django には、Selenium のようなツールとの連携を容易にしてくれる LiveServerTestCase が用意されています。 複雑なアプリケーションを開発する時には、継続的インテグレーション ( continuous integration ) のために、 ...
https://man.mtool.work/django/6.1/intro/tutorial05.html
Django 1.4 リリースノート 7425
Django 1.4 リリースノート March 23, 2012 Django 1.4 へようこそ! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 1.3 or older versions. We've a ... testing frameworks Django 1.4 supports integration with in-browser testing frameworks like Selenium . The new django.test.LiveServerTestCase base class lets you test the interactions between your site's front and back ends more comprehensively. See the documentat ...
https://man.mtool.work/django/6.1/releases/1.4.html
PREV 1 2 NEXT