From 5884dc8df306d46b8d96c2202ec7753279fd85fc Mon Sep 17 00:00:00 2001 From: David Grant Date: Thu, 26 Oct 2017 12:17:11 -0400 Subject: [PATCH] Fixed command for installing all test requirements (#3787) previous command was giving me: (venv) dgrant@16elford:~/home-assistant$ bash pip3 install -r requirements_test_all.txt import: unable to open X server `' @ error/import.c/ImportImageCommand/364. import: unable to open X server `' @ error/import.c/ImportImageCommand/364. from: can't read /var/mail/pip /home/dgrant/home-assistant/venv/bin/pip3: pip3: line 10: syntax error near unexpected token `(' /home/dgrant/home-assistant/venv/bin/pip3: pip3: line 10: ` sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])' --- source/developers/development_testing.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/developers/development_testing.markdown b/source/developers/development_testing.markdown index a3b9f152501..b1bc38d0c29 100644 --- a/source/developers/development_testing.markdown +++ b/source/developers/development_testing.markdown @@ -42,7 +42,7 @@ $ tox -e py36 -- tests/test_core.py --duration=10 Running tox will invoke the full test suite. Even if you specify which tox target to run, you still run all tests inside that target. That's not very convenient to quickly iterate on your code! To be able to run the specific test suites without Tox, you'll need to install the test dependencies into your Python environment: ```bash -$ bash pip3 install -r requirements_test_all.txt +$ pip3 install -r requirements_test_all.txt ``` Now that you have all test dependencies installed, you can run tests on individual files: