aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2020-02-12Tests: add a return value for MockReaction.__str__Gravatar MarkKoz-0/+1
2020-02-12Sync tests: add messages to _reaction_check subtestsGravatar MarkKoz-4/+9
The message will be displayed by the test runner when a subtest fails.
2020-02-12Sync: fix precedence of conditional expression in _reaction_checkGravatar MarkKoz-1/+1
2020-02-12Sync tests: test _reaction_check for invalid reactionsGravatar MarkKoz-0/+43
Should return False for invalid reaction events.
2020-02-12Sync tests: test _reaction_check for valid emoji and authorsGravatar MarkKoz-0/+27
Should return True if authors are identical or are a bot and a core dev, respectively. * Create a mock core dev role in the setup fixture * Create a fixture to create a mock message and reaction from an emoji
2020-02-12Sync tests: create a test suite for confirmation testsGravatar MarkKoz-1/+9
2020-02-12Sync: make the reaction check an instance method instead of nestedGravatar MarkKoz-13/+28
The function will be easier to test if it's separate rather than nested.
2020-02-12Sync tests: create a separate test case for _send_prompt testsGravatar MarkKoz-5/+12
2020-02-12Sync tests: test the return value of _send_promptGravatar MarkKoz-7/+9
2020-02-12Sync tests: use channel fixtures with subtests in add reaction testGravatar MarkKoz-4/+15
2020-02-12Sync tests: use channel fixtures with subtestsGravatar MarkKoz-25/+17
* Merge test_send_prompt_fetches_channel_if_cache_miss into test_send_prompt_gets_channel_from_cache * Rename test_send_prompt_gets_channel_from_cache * Test test_send_prompt_sends_new_message_if_not_given with fetch_channel too
2020-02-12Sync tests: rename channel fixturesGravatar MarkKoz-2/+2
2020-02-12Sync tests: reset mocks in channel fixturesGravatar MarkKoz-0/+4
2020-02-12Sync tests: add fixtures to mock dev core channel get and fetchGravatar MarkKoz-0/+21
2020-02-12Sync tests: test _send_prompt adds reactionsGravatar MarkKoz-0/+8
2020-02-12Sync tests: test _send_prompt sends a new message if one isn't givenGravatar MarkKoz-0/+11
2020-02-12Sync tests: test _send_prompt returns None if channel fetch failsGravatar MarkKoz-0/+12
2020-02-12Sync tests: test _send_prompt fetches channel on a cache missGravatar MarkKoz-0/+11
2020-02-12Sync tests: test that _send_prompt gets channel from cacheGravatar MarkKoz-0/+11
2020-02-12Sync tests: test that _send_prompt edits message contentsGravatar MarkKoz-0/+8
2020-02-12Sync tests: create a Syncer subclass for testingGravatar MarkKoz-0/+9