Add link to telemetry setting

This commit is contained in:
Ivan Kravets
2015-12-14 11:30:39 +02:00
parent 4e90a2fd42
commit 9eae55f03c
3 changed files with 4 additions and 7 deletions

View File

@ -142,7 +142,7 @@ Examples
check_platformio_interval 3 Check for the new PlatformIO interval (days)
check_platforms_interval 7 Check for the platform updates interval (days)
enable_prompts Yes Can PlatformIO communicate with you via prompts: propose to install platforms which aren't installed yet, paginate over library search results and etc.)? ATTENTION!!! If you call PlatformIO like subprocess, please disable prompts to avoid blocking (Yes/No)
enable_telemetry Yes Share diagnostics and usage information (PlatformIO fatal errors/exceptions, platforms, boards, frameworks, commands) to help us make PlatformIO better (Yes/No)
enable_telemetry Yes Telemetry service (Yes/No)
2. Show specified setting

View File

@ -47,10 +47,8 @@ DEFAULT_SETTINGS = {
},
"enable_telemetry": {
"description": (
"Share diagnostics and usage information (PlatformIO fatal "
"errors/exceptions, platforms, boards, frameworks, commands) "
"to help us make PlatformIO better. We DO NOT share PRIVATE "
"information (Yes/No)"),
"Telemetry service <http://docs.platformio.org/en/latest/"
"userguide/cmd_settings.html?#enable-telemetry> (Yes/No)"),
"value": True
},
"enable_prompts": {

View File

@ -18,8 +18,7 @@ from platformio import app
def test_settings_check(clirunner, validate_cliresult):
result = clirunner.invoke(cli, ["get"])
assert result.exit_code == 0
assert not result.exception
validate_cliresult(result)
assert len(result.output)
for item in app.DEFAULT_SETTINGS.items():
assert item[0] in result.output