Skip to content

Commit

Permalink
tests: update instructions to execute tests
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Crocfer <[email protected]>
  • Loading branch information
ncrocfer committed Feb 21, 2023
1 parent 0136115 commit 0725d36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ To test Celery Director in real conditions we decided to use an executing `worke

```
$ (venv) git clone https://github.com/ovh/celery-director && cd celery-director
$ (venv) python setup.py develop
$ (venv) pip install -e "."
$ (venv) export DIRECTOR_HOME=`pwd`/tests/workflows/
$ (venv) director celery worker -P solo -D
$ (venv) director celery worker --concurrency=1
```

Configuration (database, redis...) can be customized in the `$DIRECTOR_HOME/.env` file.

You can then launch the tests in another terminal :

```
$ pip install pytest==5.3.5
$ pip install ".[ci]"
$ pytest tests/ -v
```

0 comments on commit 0725d36

Please sign in to comment.