8000 Match test requirements by full package name. by andrey-git · Pull Request #9764 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Match test requirements by full package name. #9764

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 9, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
< 8000 /div>
Diff view
16 changes: 9 additions & 7 deletions script/gen_requirements_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
'ephem',
'evohomeclient',
'feedparser',
'forecastio',
'fuzzywuzzy',
'gTTS-token',
'ha-ffmpeg',
Expand All @@ -51,15 +50,16 @@
'libpurecoollink',
'libsoundtouch',
'mficlient',
'nx584',
'paho',
'paho-mqtt',
'pexpect',
'pilight',
'pmsensor',
'prometheus_client',
'pydispatch',
'pydispatcher',
'PyJWT',
'pylitejet',
'pynx584',
'python-forecastio',
'pyunifi',
'pywebpush',
'restrictedpython',
Expand Down Expand Up @@ -201,11 +201,13 @@ def requirements_test_output(reqs):
output = []
output.append('# Home Assistant test')
output.append('\n')
with open('requirements_test.txt') as fp:
output.append(fp.read())
with open('requirements_test.txt') as test_file:
output.append(test_file.read())
output.append('\n')
filtered = {key: value for key, value in reqs.items()
if any(ign in key for ign in TEST_REQUIREMENTS)}
if any(
re.search(r'(^|#){}($|[=><])'.format(ign),
key) is not None for ign in TEST_REQUIREMENTS)}
output.append(generate_requirements_list(filtered))

return ''.join(output)
Expand Down
0