From fa9bd8443fbfe1046fd11b40cfad53d43038a226 Mon Sep 17 00:00:00 2001 From: Andreas Zeidler Date: Wed, 20 Mar 2013 17:54:38 +0100 Subject: [PATCH] update the documentation regarding the `get_fixture` helper please note that the japanese translation was done using "google translate" and should probably be checked again... :) --HG-- branch : doctest-fixtures --- doc/en/doctest.txt | 6 ++++++ doc/ja/doctest.txt | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/doc/en/doctest.txt b/doc/en/doctest.txt index 63fb32dc8..c27247ceb 100644 --- a/doc/en/doctest.txt +++ b/doc/en/doctest.txt @@ -50,3 +50,9 @@ then you can just invoke ``py.test`` without command line options:: mymodule.py . ========================= 1 passed in 0.02 seconds ========================= + +It is possible to use fixtures using the ``get_fixture`` helper:: + + # content of example.rst + >>> tmp = get_fixture('tmpdir') + >>> ... diff --git a/doc/ja/doctest.txt b/doc/ja/doctest.txt index 2765d7e7a..a1064a398 100644 --- a/doc/ja/doctest.txt +++ b/doc/ja/doctest.txt @@ -72,3 +72,12 @@ Python モジュール (通常 python テストモジュールを含む) の doc mymodule.py . ========================= 1 passed in 0.02 seconds ========================= + +.. + It is possible to use fixtures using the ``get_fixture`` helper:: + +それは ``get_fixture`` ヘルパーを使ってフィクスチャを使用することが可能である:: + + # content of example.rst + >>> tmp = get_fixture('tmpdir') + >>> ...