aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2020-08-19Extensions: move utility functions to a utility moduleGravatar MarkKoz-29/+35
Makes the cog cleaner and makes the functions more accessible for other modules.
2020-08-19Extensions: beautify name unqualificationGravatar MarkKoz-3/+7
Yes, that's a real word.
2020-08-19Replace relative imports with absolute onesGravatar MarkKoz-13/+13
PEP 8 recommends absolute imports over relative ones.
2020-08-19Add comment to explain why import is deferredGravatar MarkKoz-0/+1
2020-08-14Rename "cogs" directory to "exts"Gravatar MarkKoz-163/+164
The directory contains modules, which are extensions. It only indirectly contains cogs through the extensions. Therefore, a technically more accurate name is "extensions", or "exts" when abbreviated. Furthermore, "exts" is consistent with SeasonalBot.
2020-08-14Defer imports in extensions using __init__.pyGravatar MarkKoz-1/+1
Since `pkgutil.walk_packages` imports packages it comes across, it's best to avoid potential side effects from imports.
2020-08-14Extensions: support unqualified extension namesGravatar MarkKoz-3/+18
It's convenient for users to type less to specify the exception they want. Only require a qualified name if an unqualified name is ambiguous (i.e. two modules in different subpackages have identical names).
2020-08-14Extensions: refactor category grouping codeGravatar MarkKoz-3/+2
2020-08-14Extensions: support nested groupings in list commandGravatar MarkKoz-6/+5
2020-08-14Extensions: group by category in list commandGravatar MarkKoz-9/+29
2020-08-14Extensions: adjust discovery to work with dir structureGravatar MarkKoz-8/+28
Discover extensions recursively and ignore any modules/packages whose names start with an underscore.
2020-08-14Fix paths used to load extensionsGravatar MarkKoz-38/+55
2020-08-14Fix ModLog importsGravatar MarkKoz-8/+8
Bunch of modules still rely on importing the cog directly from the moderation package.
2020-08-14Prefix names of non-extension modules with _Gravatar MarkKoz-87/+100
This naming scheme will make them easy to distinguish from extensions.
2020-08-14Restructure tests and fix broken testsGravatar MarkKoz-37/+37
The cog tests structure should mirror the structure of the cogs folder. Fix some import/patch paths which broke due to the restructure.
2020-08-13Move extensions into sub-directoriesGravatar MarkKoz-23/+23
2020-08-13Fix typo on the traceback tagGravatar AtieP-1/+1
See issue #1101