aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Move completion code to a separate fileTrygve Aaberge2024-02-201-3/+3
|
* Only reset foreground color in with_color functionTrygve Aaberge2024-02-195-23/+23
| | | | | | | The with_color helper is usually used to set only the foreground color (currently all usages), so by only reseting the foreground we keep any existing background color. This fixes the default background on the current buffer in the buflist for muted conversations.
* Correctly show reactions with more than 50 users in v3.0.0Trygve Aaberge2024-02-182-2/+88
| | | | | | | | | | | If a reaction has more than 50 users, the list of users will be cropped to just 50 users. This made the counts wrong since we used the number of users rather than the count property. Fix it by using the count property instead and adding "and others" to the list of users if show_reaction_nicks is enabled (the same as the Slack client shows when you hover over the reaction). This is the same fix as in commit 6b388cd9, but for version 3.0.0.
* Support files in Slack Connect channelsTrygve Aaberge2024-02-181-0/+1
| | | | | | | | | Files uploaded in Slack Connect channels doesn't contain any information, so we have to make a request to files.info in order to get the information to render it. See https://api.slack.com/apis/channels-between-orgs#check_file_info for more info.
* Use format_url everywhere a URL is printedTrygve Aaberge2024-02-181-12/+13
|
* Use the api_cookie value as the `d` cookie if no keys are specifiedTrygve Aaberge2024-02-181-0/+10
| | | | | | Usually, only the `d` cookie is needed, so this allows you to only specify the value of that cookie without the key if you don't need to set any other cookies.
* URL encode cookies if not encodedTrygve Aaberge2024-02-181-0/+11
| | | | | The cookies need to be encoded for the Slack API to accept them, so this makes it work if the config is set with cookies that are not encoded.
* Make URL format configurableTrygve Aaberge2024-02-182-2/+16
|
* Support color rich text elementsTrygve Aaberge2024-02-181-0/+15
|
* Set options value to True if it's set without a valueTrygve Aaberge2024-02-181-3/+3
| | | | | | | It became very confusing to use None to represent it being set without a value, so use True instead. If it has a value it will always be a string, so you can still distinguish between an option without a value and an option with a truthy value.
* Fix ruff lint errorsTrygve Aaberge2024-02-182-20/+20
|
* Format all files with ruffTrygve Aaberge2024-02-181-4/+2
|
* Make SlackConversation constructor asyncTrygve Aaberge2024-02-181-1/+1
| | | | | | This is perhaps a bit hacky, but it makes the type checker enforce that we complete the async initialization of SlackConversation instead of getting a runtime exception.
* Make conversations.name not asyncTrygve Aaberge2024-02-181-2/+5
| | | | | This means a lot of methods don't have to be async. It's especially useful for the next commit adding conversations completions.
* Fix bug with setting bool config valuesTrygve Aaberge2024-02-181-1/+1
|
* Add tests for attachments and fix rendering bugsTrygve Aaberge2024-02-183-5/+680
|
* Apply code block styles firstTrygve Aaberge2024-02-181-0/+56
| | | | | | | It looks better to have the `` characters around the other styles when there's styling inside code blocks. It makes it look a bit worse when theres code blocks inside styled text though. It should really remember the order the styles are opened to close them in the correct order.
* Add render blocks tests from old versionTrygve Aaberge2024-02-182-0/+386
|
* Add some basic tests for SlackMessage._unfurl_refsTrygve Aaberge2024-02-182-1/+195
|
* Support thread hash completionTrygve Aaberge2024-02-181-0/+87
|
* Use hook_url for http requests when availableTrygve Aaberge2024-02-181-46/+133
|
* Use None instead of 0 for missing http code in HttpErrorTrygve Aaberge2024-02-181-3/+3
|
* Use eight digits for the WeeChat versionTrygve Aaberge2024-02-181-1/+1
| | | | | It's four parts with two digits each, so it's more consistent to use eight digits even though the first is a zero.
* Don't set future result in __await__Trygve Aaberge2024-02-183-36/+88
|
* Make Future very similar to asyncio.FutureTrygve Aaberge2024-02-181-4/+4
|
* Print error message on http/api errorTrygve Aaberge2024-02-181-4/+4
|
* Fix async functions returning None and without await never finishingTrygve Aaberge2024-02-181-0/+16
|
* Make methods work for callbacksTrygve Aaberge2024-02-183-5/+10
|
* Support multiple HTTP headersTrygve Aaberge2024-02-181-2/+32
| | | | Port 3aa2c79 from master into new.
* Remove active_responsesTrygve Aaberge2024-02-181-11/+10
|
* Don't fetch the same user multiple timesTrygve Aaberge2024-02-181-3/+5
|
* Add command to list workspacesTrygve Aaberge2024-02-181-1/+27
|
* Add command to add workspaceTrygve Aaberge2024-02-181-0/+13
|
* Move importTrygve Aaberge2024-02-181-3/+2
| | | | Not necessary anymore, when __init__.py doesn't import weechat.
* Move main out of slack dirTrygve Aaberge2024-02-181-0/+6
| | | | The sys path thing got wrong directory when inside slack dir.
* Fix tests after file splitTrygve Aaberge2024-02-184-30/+21
|
* Start on new version of wee-slackTrygve Aaberge2024-02-186-0/+310