summaryrefslogtreecommitdiff
path: root/doc/en/getting-started.rst
diff options
context:
space:
mode:
authorboris <boris@verhovs.ky>2019-08-06 16:18:06 -0700
committerboris <boris@verhovs.ky>2019-08-06 16:18:06 -0700
commit23a0b532dbe72d6cb6ec923d9ce6f0a63a34fc28 (patch)
tree681fb33747fc5a3be3ff747ccc9978207df69cb7 /doc/en/getting-started.rst
parent9fce0bdd88c425aa7b98dc4cc0c2696c19fdbd95 (diff)
downloadpytest-23a0b532dbe72d6cb6ec923d9ce6f0a63a34fc28.tar.gz
Revert "remove implicit code tags .replace("::\n\n.. code-block", "\n\n.. code-block")"
This reverts commit 9fce0bdd88c425aa7b98dc4cc0c2696c19fdbd95.
Diffstat (limited to 'doc/en/getting-started.rst')
-rw-r--r--doc/en/getting-started.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/en/getting-started.rst b/doc/en/getting-started.rst
index ca62a9667..808ffcc64 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