[Pytest-commit] Issue #239: Passing several commands from other section invoked as one-liner (hpk42/tox)

Przemek Hejman issues-reply at bitbucket.org
Mon Apr 20 16:23:38 CEST 2015


New issue 239: Passing several commands from other section invoked as one-liner
https://bitbucket.org/hpk42/tox/issue/239/passing-several-commands-from-other

Przemek Hejman:

it seems like passing commands from other section with:
```

[testenv:smoketests]
setenv=
    DJANGO_CONFIGURATION=ProductTestsSqlite
commands =
    python manage.py reset_db --noinput
    py.cleanup -p
    python manage.py syncdb --no-initial-data --noinput
    python manage.py migrate --noinput
    python manage.py load_all_fixtures
    py.cleanup -p
    python manage.py reset_db --noinput


[testenv:smoketests-without-bug-in-tox]
setenv=
    DJANGO_CONFIGURATION=ProductSDKTestsSqlite
commands =
    {[smoketests]commands}
```
inovkes all commands separated with newline  **as a one, single-lined command**, because I get following errors:

```
ERROR: InvocationError: '/.toxenv/bin/python manage.py reset_db --noinput py.cleanup -p python manage.py syncdb --no-initial-data --noinput python manage.py migrate --noinput python manage.py load_all_fixtures py.cleanup -p python manage.py reset_db --noinput'
```

Responsible: RonnyPfannschmidt


More information about the pytest-commit mailing list