aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2020-12-09Create a generator instead of returning a listGravatar Numerlor-6/+4
The result of _split_parameters is only iterated over, so a list is not needed. Making it lazy may also save some time in cases where we don't use all parameters
2020-12-09Merge current_search and expected_end inGravatar Numerlor-10/+11
The two variables were initialized and cleared together and contained related information
2020-12-09Improve handling of stringsGravatar Numerlor-7/+28
Previously the code assumed ' and " can be used interchangeably, and strings that were inside of brackets were ignored for depth but their contents weren't causing strings like "ab[cd" to increase the depth
2020-11-29Remove redundant suppressGravatar Numerlor-2/+2
2020-11-29Various grammar and sentence structure changesGravatar Numerlor-13/+14
Co-authored-by: MarkKoz <[email protected]>
2020-11-29Clear up docstring so it doesn't rely on private attributeGravatar Numerlor-1/+1
Co-authored-by: MarkKoz <[email protected]>
2020-11-29Use pop instead of getitem and delGravatar Numerlor-2/+1
Co-authored-by: MarkKoz <[email protected]>
2020-11-29Use timedelta instead of constructing duration manuallyGravatar Numerlor-2/+3
A newline was also added to set to keep it consistent with set_if_exists
2020-11-15Ensure packages from PRIORITY_PACKAGES are directly accessibleGravatar Numerlor-0/+7
Some packages (currently only python) should be prioritised to others, the previous cleanup didn't account for other packages loading before it which resulted in duplicate symbols getting the python prefix and the original symbols linking to most probably undesired pages
2020-11-15Add command for clearing the cache of packagesGravatar Numerlor-0/+8
We also clear the cache when removing a package
2020-11-15Update existing redis values when parsing pagesGravatar Numerlor-6/+25
If we're parsing a page for a symbol that's out of the cache and encounter a symbol that was already cached we can update that symbol to keep it up to date without additional requests
2020-11-15Rework the doc redis cache to work with hashesGravatar Numerlor-12/+56
This rework requires us to delete packages caches easily with deleting the package hash instead of having to pattern match all keys and delete those. The interface was also updated to accept DocItems instead of requiring callers to construct the keys
2020-11-15Limit newlines in doc descriptionsGravatar Numerlor-16/+32
2020-11-15Intern relative url pathsGravatar Numerlor-4/+9
Group name interning was also moved to the DocItem creation to group the behaviour
2020-11-15Cancel scheduled inventory updates on all refreshesGravatar Numerlor-6/+2
2020-11-15Adjust unparseable symbol behaviourGravatar Numerlor-3/+6
With redis we need to make sure we don't send the "error" string into the cache, returning None instead of the string and then setting it manually in the caller makes this nicer compared to checking against a string
2020-11-15Update outdated docstringGravatar Numerlor-1/+1
2020-11-15Rename variables for clarityGravatar Numerlor-11/+11
2020-11-10Generalise tag filter hint to accept all containersGravatar Numerlor-5/+5
2020-11-10Relock Pipfile.lockGravatar Numerlor-298/+136
2020-11-10Move InventoryURL converer to the converters fileGravatar Numerlor-21/+22
2020-11-10Simplify duplicate symbol name handling codeGravatar Numerlor-10/+4
With the catchall else condition and symbols from FORCE_PREFIX_GROUPS getting renamed even when being overwritten, we can ignore the package handling and let it go to the else which adds the package prefix instead of a group
2020-11-10Add package in front of symbol as default fallbackGravatar Numerlor-2/+1
Previously weo nly added the package name for symbols that shared are named name with an another symbol, but in some edge cases we can get to this point with symbols that weren't renamed but have name conflicts, causing some to get overwritten completely without the capturing condition
2020-11-10Cache user fetched symbols through redis.Gravatar Numerlor-2/+43
2020-11-06Detect codeblock language with special charactersGravatar Sebastiaan Zeeff-1/+1
The regex we use to detect codeblocks did not recognize language specifiers that use a dash, a plus, or a dot in their name. As there are valid language specifiers, such as python-repl and c++, that use those characters, I've changed the regex to reflect that. The character set used now reflects the characters used in language specifiers in highlight.js. Signed-off-by: Sebastiaan Zeeff <[email protected]>
2020-11-05Modified instructions for code block without langGravatar Amin Boukari-1/+1
2020-11-05Changed ```python to ```pyGravatar Amin Boukari-1/+1
2020-11-01Actually fix the issue @kwzrd pointed outGravatar Joe Banks-3/+3
2020-11-01Correct 404 error message in voice gate commandGravatar Joe Banks-2/+2
2020-11-01Reinsert python-repl in PY_LANG_CODESGravatar Zach Gates-1/+1
2020-11-01Updated langs to include python-replGravatar Zach Gates-1/+1
2020-11-01Correct activity block config name in voice gate extensionGravatar Joe Banks-1/+1
2020-11-01Indent inline comment by two spaces in config-default.ymlGravatar Joe Banks-1/+1
2020-11-01Change wording of failure message and re-add trailing commaGravatar Joe Banks-1/+1
2020-11-01Remove full stopGravatar Joe Banks-1/+1
2020-10-31Add activity blocks threshold to voice gateGravatar Joe Banks-1/+4
2020-10-31Add new activity block constantGravatar Joe Banks-0/+2
2020-10-27Fix incorrect argument for _send_log when filtering evalsGravatar MarkKoz-1/+1
Fixes BOT-AN
2020-10-27"see here" -> "check this out"Gravatar Steele Farnsworth-1/+1
2020-10-26link to a page about finding the backtick key on different layouts.Gravatar Steele Farnsworth-1/+1
2020-10-26Made the message significantly shorterGravatar Steele-13/+3
2020-10-22Swapped individual channel ids for category id.Gravatar Daniel Brown-8/+4
Signed-off-by: Daniel Brown <[email protected]>
2020-10-22Update config-default.yml Gravatar Daniel Brown-1/+1
Changing a hyphen to an underscore in the config Co-authored-by: kwzrd <[email protected]>
2020-10-22Added voice_chat to eval listGravatar Daniel Brown-1/+9
Signed-off-by: Daniel Brown <[email protected]>
2020-10-22Update Python Discord badge to 100k members.Gravatar Dennis Pham-1/+1
2020-10-22Use FetchedMember for user annotationGravatar mbaruh-6/+7
2020-10-22Add handling of off-server users to user commandGravatar mbaruh-16/+23
2020-10-21Silence tests: update docstrings in notifier testsGravatar MarkKoz-2/+2
2020-10-21Relay python-dev to mailing lists channelGravatar Joe Banks-0/+1
2020-10-21Remove unnecessary getLogger callGravatar Numerlor-1/+0