| Commit message (Collapse) | Author | Lines | ||
|---|---|---|---|---|
| 2020-06-19 | Incidents tests: write tests for `crawl_incidents` | -0/+58 | ||
| 2020-06-19 | Incidents tests: add helper for mocking async for-loops | -0/+37 | ||
| See the docstring. This does not make the ambition to be powerful enough to be included in `tests.helpers`, and is only intended for local purposes. | ||||
| 2020-06-18 | Incidents tests: write tests for `process_event` | -1/+101 | ||
| This also breaks the helpers import statement into a vertical list, as the amount of imports has grown too much. I still believe that this is a preferred alternative to accessing the helpers via module namespace, as we use them a lot, and the added visual noise would be annoying to read - their names are already descriptive enough. | ||||
| 2020-06-17 | Update deletion scheduler to use latest watchlist configuration | -17/+5 | ||
| 2020-06-17 | Add LMGTFY to domain blacklist | -0/+1 | ||
| 2020-06-16 | Format parameters with a more consistent style | -19/+19 | ||
| 2020-06-16 | Add optional type annotations to reason in pardon funcs | -2/+2 | ||
| 2020-06-16 | Revise inaccurate typehint for Optional reason | -18/+31 | ||
| 2020-06-16 | Revise inaccurate docstring in RedisCache | -2/+2 | ||
| 2020-06-16 | Refactor nested if-statement | -5/+4 | ||
| 2020-06-15 | Log exception info for failed attachment uploads | -1/+1 | ||
| 2020-06-15 | Update bot/resources/tags/customcooldown.md | -3/+1 | ||
| Co-authored-by: Mark <[email protected]> | ||||
| 2020-06-14 | Fix check for bot actor in infractions | -4/+4 | ||
| The reason None check should be nested to avoid affecting the else/elif statements that follow. | ||||
| 2020-06-14 | Check infraction reason isn't None before shortening it | -5/+8 | ||
| 2020-06-15 | Add the C# guild to the whitelist | -0/+1 | ||
| 2020-06-13 | Incidents tests: write tests for `make_confirmation_task` | -0/+35 | ||
| 2020-06-13 | Incidents tests: write tests for `on_message` | -0/+27 | ||
| 2020-06-13 | Incidents tests: test non-404 error response | -0/+20 | ||
| 2020-06-13 | Incidents: log error on non-404 response | -2/+3 | ||
| We do not wish to log 404 exceptions as those are expected, however, if something else goes wrong, we shouldn't silence it. This also removes the explicit None return as it only adds syntax noise. | ||||
| 2020-06-13 | Incidents tests: write tests for `resolve_message` | -0/+56 | ||
| 2020-06-13 | Incidents tests: move `mock_404` into module namespace | -5/+6 | ||
| This will be useful for others tests as well. | ||||
| 2020-06-13 | Incidents tests: write tests for `archive` | -2/+63 | ||
| 2020-06-13 | Incidents tests: set up base class for `Incidents` | -2/+21 | ||
| For cleanliness, I've decided to make a separate class for each method. Since most tests will want to have an `Incident` instance ready, they can inherit the `setUp` from `TestIncidents`, which does not make any assertions on its own. | ||||
| 2020-06-13 | Incidents tests: improve mock `Signal` name & move def | -6/+6 | ||
| Let's make it clear that this is our own mock. We also move the definition to the top of the module. | ||||
| 2020-06-13 | Incidents tests: use our own helper mocks | -16/+14 | ||
| No reason to build own MagicMocks as we already have helpers that more accurately mimic the mocked behaviour. | ||||
| 2020-06-12 | Escape markdown in charinfo embed | -2/+2 | ||
| The embed displays the original character. If it's a markdown char, it would interfere with the embed's actual markdown. The backtick was especially troublesome. Fixes #996 | ||||
| 2020-06-12 | Incidents tests: write tests for module-level helpers | -0/+135 | ||