From 3dc4765796111e255c8c6ecb4b3ec21b19179d61 Mon Sep 17 00:00:00 2001 From: Vedran Karacic Date: Wed, 8 May 2019 13:42:38 +0200 Subject: [PATCH] Fix test section format in readme --- README.rst | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/README.rst b/README.rst index b11a9c9..5c074ef 100644 --- a/README.rst +++ b/README.rst @@ -196,31 +196,28 @@ To run the tests you will need the following in addition to install requirements The following commands can be used to run the tests: -``` -# Create virtual environment -python -m venv venv +.. code:: bash -# Install requirements -venv/bin/pip install -r requirements.txt + # Create virtual environment + python -m venv venv -# Install test dependencies -venv/bin/pip install pytest pytest-django + # Install requirements + venv/bin/pip install -r requirements.txt -# Install django-q -venv/bin/python setup.py develop + # Install test dependencies + venv/bin/pip install pytest pytest-django + # Install django-q + venv/bin/python setup.py develop -# Run required services (you need to have docker-compose installed) -docker-compose -f test-services-docker-compose.yaml up -d + # Run required services (you need to have docker-compose installed) + docker-compose -f test-services-docker-compose.yaml up -d -# Run tests -venv/bin/pytest - -# Stop the services required by tests (when you no longer plan to run tests) -docker-compose -f test-services-docker-compose.yaml down - -``` + # Run tests + venv/bin/pytest + # Stop the services required by tests (when you no longer plan to run tests) + docker-compose -f test-services-docker-compose.yaml down Locale ~~~~~~