1
mirror of https://github.com/home-assistant/core synced 2024-09-09 12:51:22 +02:00
ha-core/tests/testing_config
Punita Ojha 23b3db08f3
Rewrite smtp Unittest Tests To Pytest Style (#41720)
* Rewrite smtp unittest tests to pytest style
test functions.

.coverage.rc  --> Remove homeassistant/component/smtp/notify.py from
omit section.
test_notify.py --> Convert test case to pytest style.
test.jpg, test.pdf --> Add test files.

Issue id:- #40894

* Made Fix Based On Code Review
To Pull Request -  #41720.

.coveragerc --> Add file in omit section as coverage is 75%(i.e. <95%)
test_notify.py --> Capitalize constant in file, Made parametrized data
compatible to avoid if conditions.

Code Review Submission on Pull Request #41720.

* Made Fix Based On Code Review
To Pull Request #41720.

test_notify.py --> Add different test for simple text message to avoid if conditions check in code.

* Move Notify Media Files To
 Folder tests/testing_config/notify.

 test_notify.py --> Add Relevant Path For .jpg and .pdf file.
 test.jpg, test.pdf --> Move to relevant location.

 Pull request #41720
2020-10-16 13:55:12 +02:00
..
custom_components Add missing unit for signal strength (#40436) 2020-10-01 16:14:29 +02:00
media Media Source implementation for Chromecast (#39305) 2020-09-04 11:16:29 -04:00
notify Rewrite smtp Unittest Tests To Pytest Style (#41720) 2020-10-16 13:55:12 +02:00
__init__.py Load requirements and dependencies from manifests. Fallback to current REQUIREMENTS and DEPENDENCIES (#22717) 2019-04-11 01:26:36 -07:00
.remember_the_milk.conf Use hue/sat as internal light color interface (#11288) 2018-03-18 15:00:29 -07:00
kira_codes.yaml Add Kira component to sensor and remote platforms (#7479) 2017-05-12 21:12:47 -07:00