python-zulip-api/zulip_bots/zulip_bots/bots
Robert Hönig 60c3919deb bot tests: Allow raw responses in fixtures.
Previously, the responses set in bot test fixtures
where handled as JSON objects. This works fine for
most bot tests, because most of the APIs that bots
are calling return a JSON-formatted response object.
However, some, like Trello, do return raw data.
This hasn't been noticed so far, because the respective
Trello test needed internet access. Tests shouldn't
need internet access.
This commit makes that Trello test use a fixture. To
work properly, it also adds a way to make http_mock_config
parse the response object as raw data.
This can now be done by modifying the "is_raw_response"
property in a newly introduced "meta" object that can
be used to specify how a fixture should be handled.
2018-06-04 10:13:38 -07:00
..
baremetrics baremetrics: Remove extra newlines & spaces in code and tests. 2018-05-30 07:11:16 -04:00
beeminder beeminder: Check auth_token in initialize by idempotent request. 2018-06-03 22:17:01 -07:00
chessbot chess: Rename to chessbot to avoid naming conflict with engine. 2018-05-26 16:12:25 -07:00
connect_four Enforce 'rules' command in existing games. 2018-03-25 12:53:15 -04:00
converter converter: Get test coverage to 100% 2018-02-01 16:13:54 -05:00
define Add requirements.txt for each bot. 2018-01-06 16:39:52 +01:00
dialogflow zulip_bots: Move six imports. 2018-01-06 16:39:52 +01:00
dropbox_share Dropbox Bot: Support sharing, searching and primary file operations. 2018-02-16 09:42:03 -05:00
encrypt Add requirements.txt for each bot. 2018-01-06 16:39:52 +01:00
flock bots: Add 3 missing __init__.py files. 2018-05-26 14:36:26 -07:00
followup Rename followup.config to followup.conf. 2018-01-06 16:58:50 -03:30
front interactive bots: Create Front bot. 2018-03-08 07:38:35 -05:00
game_handler_bot Enforce 'rules' command in existing games. 2018-03-25 12:53:15 -04:00
game_of_fifteen game_of_fifteen: Use consistent naming & simplify imports. 2018-05-26 14:36:26 -07:00
giphy zulip_bots: Clean gyphy bot code. 2018-05-16 08:15:36 -07:00
github_detail github_detail_bot: Add tests for bad requests. 2018-03-08 08:27:32 -05:00
google_search zulip_bots: Move six imports. 2018-01-06 16:39:52 +01:00
google_translate Add requirements.txt for each bot. 2018-01-06 16:39:52 +01:00
helloworld mypy: Avoid 'Any' for message in bots. 2018-05-30 07:11:16 -04:00
help Add requirements.txt for each bot. 2018-01-06 16:39:52 +01:00
idonethis idonethis: Remove extra newlines in code & tests. 2018-05-30 07:11:16 -04:00
incrementor zulip_bots: Move from mock to unittest.mock in most files. 2018-01-06 16:39:52 +01:00
interrealm_bridge bots: Init interrealm bridge bot. 2018-01-12 07:15:23 -05:00
jira bots: Add 3 missing __init__.py files. 2018-05-26 14:36:26 -07:00
link_shortener link_shortener: Allow #% characters for shortening URL. 2018-05-15 09:12:40 -07:00
mention mypy: Avoid 'Any' for message in bots. 2018-05-30 07:11:16 -04:00
merels Port merels to game_handler. 2018-02-27 08:28:40 -05:00
monkeytestit bots: Don't run tests for monkeytestit bot. 2018-05-28 13:43:15 +02:00
salesforce salesforce: Minor improvements; imports & types. 2018-05-30 07:11:16 -04:00
stack_overflow mypy: Avoid 'Any' for message in bots. 2018-05-30 07:11:16 -04:00
susi susi: Pass API query parameters as params dict in requests.get(). 2018-05-15 09:12:40 -07:00
tictactoe Enforce 'rules' command in existing games. 2018-03-25 12:53:15 -04:00
trello bot tests: Allow raw responses in fixtures. 2018-06-04 10:13:38 -07:00
trivia_quiz bots: Add proper error handling for trivia bot. 2018-06-04 06:51:35 -04:00
twitpost twitpost: Add __init__.py and requirements.txt. 2018-05-26 14:36:26 -07:00
virtual_fs virtual_fs : Get test coverage to 100%. 2018-02-15 10:06:43 +01:00
weather weather: Pass API query parameters as params dict in requests.get(). 2018-05-15 09:12:40 -07:00
wikipedia wikipedia bot: Update bot & tests to use bot identity functionality. 2018-05-31 06:10:50 -04:00
witai witai: Add __init__.py and fix tests. 2018-05-26 14:36:26 -07:00
xkcd xkcd bot: Update bot & tests to use bot identity functionality. 2018-05-31 06:10:50 -04:00
yoda yoda: Pass API query parameters as params dict in requests.get(). 2018-05-15 09:12:40 -07:00
youtube Add requirements.txt for each bot. 2018-01-06 16:39:52 +01:00
__init__.py bots: Move all bots and the bots API to separate package. 2017-07-18 02:20:27 -02:30