Jan Bouwhuis
d8a6d864c0
Raise on smtp notification if attachment is not allowed ( #104981 )
...
* Raise smtp notification if attachment not allowed
* Pass url as placeholder
* Use variable in err message
* Add allow_list as placeholder
2023-12-04 11:48:29 +01:00
Jan Bouwhuis
fe2906f159
Do not allow smtp to access insecure files ( #104972 )
2023-12-03 20:06:01 -05:00
aptalca
a1f7f899c9
Make SMTP notify send images as attachments if html is disabled ( #93562 )
...
smtp notify: send images without html as attachments
update smtp test to detect content_type for plain txt + image
2023-11-23 13:51:51 +01:00
Rami Mosleh
eb0099dee8
Move smtp constants to const.py ( #99542 )
2023-09-11 09:36:55 +02:00
epenet
3a9adacdde
Add type hints to integration tests (part 20) ( #88179 )
2023-02-15 15:23:34 +01:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
ba85fdcd61
Add type hints to integration tests (q-s) ( #87706 )
2023-02-08 08:12:54 -08:00
Franck Nijhof
ef800335fb
Enable Ruff PT022 ( #86792 )
...
* Enable Ruff PT022
* Adjust found cases
2023-01-27 13:57:06 +01:00
Paulus Schoutsen
cbd0c8976b
Attach SSL context to SMTP notify and IMAP sensor ( #72568 )
2022-05-26 22:15:20 -07:00
Paulus Schoutsen
31153ac155
Move fixtures part 1 ( #58902 )
2021-11-01 20:47:05 -07:00
billsq
90e9216e9a
Add support for overriding SMTP recipient(s) in a service call ( #47611 )
2021-06-28 12:54:03 +02:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
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
J. Nick Koston
56e76a3265
Support reloading the smtp notify platform ( #39530 )
...
* Support reloading the smtp notify platform
* patch test
2020-09-02 19:43:07 -05:00
Paulus Schoutsen
c33edbe5bb
Use TestCase.addCleanup ( #36560 )
2020-06-08 12:26:40 -07:00
Paulus Schoutsen
2af984917e
Use asynctest-mock in most places ( #35109 )
...
* Use asynctest-mock in most places
* Fix broken patch in pilight
2020-05-03 11:27:19 -07:00
Ville Skyttä
5216477353
Be consistent with Home Assistant and Hass.io spelling ( #30500 )
...
* Be consistent with Home Assistant spelling
* Be consistent with Hass.io spelling
2020-01-05 14:09:17 +02:00
Bas Nijholt
23b92b2a56
Sort imports according to PEP8 for components starting with "S" ( #29777 )
2019-12-09 14:38:01 +01:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Robbie Trencheny
7741ec4d5a
Great migration notify ( #22406 )
...
* Move notify platforms into components
* Move notify tests
* Fix notify tests
* More fixes
* Update requirements
* Update .coveragerc
* Run gen reqs
2019-03-27 20:36:13 -07:00