Skip to content

Commit

Permalink
Merge pull request #358 from vkaracic/readme-test
Browse files Browse the repository at this point in the history
Fix test section format in readme
  • Loading branch information
Koed00 authored Aug 10, 2019
2 parents 7d437ea + 3dc4765 commit c000150
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
~~~~~~
Expand Down

0 comments on commit c000150

Please sign in to comment.