Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test section format in readme #358

Merged
merged 1 commit into from
Aug 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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