diff options
author | boris <boris@verhovs.ky> | 2019-08-06 15:46:57 -0700 |
---|---|---|
committer | boris <boris@verhovs.ky> | 2019-08-06 15:46:57 -0700 |
commit | 9fce0bdd88c425aa7b98dc4cc0c2696c19fdbd95 (patch) | |
tree | 577e22f5b4bdb13eab1e3efdfc8193c2a3623dd4 /doc/en/getting-started.rst | |
parent | 5f95dce95602921a70bfbc7d8de2f7712c5e4505 (diff) | |
download | pytest-9fce0bdd88c425aa7b98dc4cc0c2696c19fdbd95.tar.gz |
remove implicit code tags .replace("::\n\n.. code-block", "\n\n.. code-block")
Diffstat (limited to 'doc/en/getting-started.rst')
-rw-r--r-- | doc/en/getting-started.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/en/getting-started.rst b/doc/en/getting-started.rst index 808ffcc64..ca62a9667 100644 --- a/doc/en/getting-started.rst +++ b/doc/en/getting-started.rst @@ -35,7 +35,7 @@ Install ``pytest`` Create your first test ---------------------------------------------------------- -Create a simple test function with just four lines of code:: +Create a simple test function with just four lines of code .. code-block:: python @@ -86,7 +86,7 @@ Run multiple tests Assert that a certain exception is raised -------------------------------------------------------------- -Use the :ref:`raises <assertraises>` helper to assert that some code raises an exception:: +Use the :ref:`raises <assertraises>` helper to assert that some code raises an exception .. code-block:: python @@ -113,7 +113,7 @@ Execute the test function with “quiet” reporting mode: Group multiple tests in a class -------------------------------------------------------------- -Once you develop multiple tests, you may want to group them into a class. pytest makes it easy to create a class containing more than one test:: +Once you develop multiple tests, you may want to group them into a class. pytest makes it easy to create a class containing more than one test .. code-block:: python @@ -152,7 +152,7 @@ The first test passed and the second failed. You can easily see the intermediate Request a unique temporary directory for functional tests -------------------------------------------------------------- -``pytest`` provides `Builtin fixtures/function arguments <https://docs.pytest.org/en/latest/builtin.html>`_ to request arbitrary resources, like a unique temporary directory:: +``pytest`` provides `Builtin fixtures/function arguments <https://docs.pytest.org/en/latest/builtin.html>`_ to request arbitrary resources, like a unique temporary directory .. code-block:: python |