So I have an integration test that tests multiple components of my application together, the whole end-to-end test. I need to pipe it to Django shell in order to be able to access models etc. But I also need to pass a parameter to the script. This is what I am doing:
venv/bin/python src/manage.py shell < src/integration_tests/endtoend.py
But what I want to do is:
venv/bin/python src/manage.py shell < src/integration_tests/endtoend.py -o 2
If I do that, it throws an exception though:
Usage: src/manage.py shell [options]
Runs a Python interactive interpreter. Tries to use IPython, if it's available.
src/manage.py: error: no such option: -o
How should I do this?