Commit graph

46 commits

Author SHA1 Message Date
Martin Rey 2c058d7e15 [misc] Use black to reformat code 2020-12-30 21:45:06 +01:00
Martin Rey 2954f3700b [misc] Sort imports with isort 2020-12-30 21:45:06 +01:00
Martin Rey eba21e8409 [misc] Use single quotes when possible 2020-12-30 21:45:06 +01:00
Martin Rey 8705fe0b1f [misc] Concat strings explicitly 2020-12-30 21:45:06 +01:00
Martin Rey e85a4cebb0 [misc] Add member to copyright section of edited files 2020-12-30 21:45:06 +01:00
Martin Rey 2db213af69 [misc] Use format() instead of %s, f-strings, concat 2020-12-30 21:45:06 +01:00
Cathy Hu 1a8071d8d6 [tests] Fix formatting 2020-09-12 18:42:52 +02:00
Cathy Hu 014114a8db [tests] Add tests for getting all telegram bots of a hood 2020-09-12 18:41:18 +02:00
Cathy Hu a8f4d2220b [tests] Split conftest.py into subfolders 2020-09-12 18:41:18 +02:00
Cathy Hu 2af4b27e0b [tests] Restructure testing files 2020-09-12 18:41:11 +02:00
Cathy Hu 17c3b4523f [tests] Add REST API tests for creating a telegram bot 2020-09-12 18:39:38 +02:00
Cathy Hu 09810680e8 [core] Add default trigger value 2020-09-08 13:02:07 +02:00
Cathy Hu ad4f9fb4fb [email] Fix email unsubscribe error handling 2020-09-06 23:06:52 +02:00
Cathy Hu a24e5ff4f9 [twitter] Make twitter callback private 2020-09-05 21:32:10 +02:00
Cathy Hu 71ac6fd7fa [core] Make GET hood/id public and implement register correctly 2020-08-18 23:44:13 +02:00
Cathy Hu f8ef547442 [tests] Remove unused monkeypatch 2020-07-19 00:40:28 +02:00
Cathy Hu 208efe42a7 [tests] Add REST API tests for getting all twitter bots 2020-07-19 00:40:28 +02:00
Cathy Hu a8f60b8786 [tests] Add tests for getting infos about a twitter bot 2020-07-19 00:40:28 +02:00
Cathy Hu efebe40a44 [tests] Add tests for deleting a twitter bot 2020-07-19 00:40:28 +02:00
Cathy Hu 48db2de748 [tests] Add REST API tests for creating a twitter bot and fix issues 2020-07-19 00:40:28 +02:00
Thomas Lindner fc324f102d [misc] Add flake8 to tox and fix existing issues 2020-07-17 19:59:25 +02:00
Thomas Lindner 761a4f9e0a [tests] Finish adapting email tests to previous changes 2020-07-17 15:51:14 +02:00
Cathy Hu f6f6ecdd7c [email] Fix rest api tests and code 2020-07-17 15:51:14 +02:00
maike 2815f70bf8 [tests] Changed GET calls to proper REST 2020-07-17 15:51:14 +02:00
maike 5e54fd2517 [tests] Skip MDA test - too high-level and only works sometimes 2020-07-17 15:51:14 +02:00
maike b54b6d0e24 [tests] Finish test for kibicara_mda 2020-07-17 15:51:14 +02:00
maike b8113c59ae [tests] Incomplete happy path test for kibicara_mda 2020-07-17 15:51:14 +02:00
maike b9dafa9fc8 [email] Only one email bot per hood - reducing API 2020-07-17 15:51:14 +02:00
maike 29d10d5acd [tests] Incomplete test for kibicara_mda 2020-07-17 15:51:14 +02:00
maike 2215470bd2 [tests] Fix coding style 2020-07-17 15:51:14 +02:00
maike 0dbade63ac [email] Fix and reduce tests 2020-07-17 15:51:14 +02:00
maike 40ac9f3b85 [tests] Delete email bot 2020-07-17 15:51:14 +02:00
maike a3c5de29c5 [tests] Unsubscribe from email bot 2020-07-17 15:51:14 +02:00
maike 7f07e566eb [tests] Write email without trigger words 2020-07-17 15:51:14 +02:00
maike 77880e72f2 [tests] Unauthorized: delete email bot, write message 2020-07-17 15:51:14 +02:00
maike 1d55c45890 [tests] Subscribe to email bot 2020-07-17 15:51:14 +02:00
maike 4a2ed681ca [tests] Add fixture to create email rows 2020-07-17 15:51:14 +02:00
maike ae979c37f9 [tests] Tests for email subscription w/o auth 2020-07-17 15:51:14 +02:00
maike 8f7840fb7c [tests] Email API happy path works now 2020-07-17 15:51:14 +02:00
maike 023f0c5a46 [tests] Happy path tests for email API 2020-07-17 15:51:14 +02:00
maike d7b71d12ae [tests] Testing if authorization is necessary 2020-07-17 15:51:14 +02:00
hagi bb14db155c [tests] test password length check 2020-07-16 14:08:27 +02:00
Thomas Lindner a00a6b8497 [tests] Mock send_email 2020-07-11 18:23:44 +02:00
Thomas Lindner b1d0197037 [tests] Add fixtures 2020-07-08 13:00:35 +02:00
hagi 16c0d101be [tests] Add tests for unauthorized access 2020-07-05 21:38:17 +02:00
Cathy Hu 29c9a9d66d [tests] Validate missing body return code in registration 2020-07-02 11:23:16 +02:00