aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-02-20 22:51:32 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2020-02-20 22:51:32 +0100
commitcc6459415bbf117353564cc709da0343434dcf23 (patch)
tree63d6ff15fb45fb57148a3d6cc2f896dd26ad178b /_pytest
parent6c07fb93e5c0ea8e481bebce4664bc4bfb28ac1f (diff)
downloadwee-slack-cc6459415bbf117353564cc709da0343434dcf23.tar.gz
Remove ignore_alt_text parameter from unfurl_refs
This is only used in tests and in render_topic, and I don't see why render_topic shouldn't follow the global config that is set.
Diffstat (limited to '_pytest')
-rw-r--r--_pytest/test_unfurl.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/_pytest/test_unfurl.py b/_pytest/test_unfurl.py
index 0ca3cd0..6178bbb 100644
--- a/_pytest/test_unfurl.py
+++ b/_pytest/test_unfurl.py
@@ -85,10 +85,8 @@ import pytest
))
def test_unfurl_refs(case, realish_eventrouter):
wee_slack.EVENTROUTER = realish_eventrouter
+ wee_slack.config.unfurl_ignore_alt_text = case.get('ignore_alt_text')
wee_slack.config.unfurl_auto_link_display = case.get('auto_link_display')
- result = wee_slack.unfurl_refs(
- case['input'],
- ignore_alt_text=case.get('ignore_alt_text', False)
- )
+ result = wee_slack.unfurl_refs(case['input'])
assert result == case['output']