diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2020-02-19 21:03:59 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2020-02-20 22:49:34 +0100 |
commit | 6c07fb93e5c0ea8e481bebce4664bc4bfb28ac1f (patch) | |
tree | 282885d293047731497213d8ed8233111380a8e2 /_pytest | |
parent | 1fe556f16751889d6ca92d7ecea408eea6d3d4fa (diff) | |
download | wee-slack-6c07fb93e5c0ea8e481bebce4664bc4bfb28ac1f.tar.gz |
Remove auto_link_display parameter from unfurl_refs
This is only used in tests, and there we can override the config
instead.
Diffstat (limited to '_pytest')
-rw-r--r-- | _pytest/test_unfurl.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/_pytest/test_unfurl.py b/_pytest/test_unfurl.py index be3e958..0ca3cd0 100644 --- a/_pytest/test_unfurl.py +++ b/_pytest/test_unfurl.py @@ -85,10 +85,10 @@ import pytest )) def test_unfurl_refs(case, realish_eventrouter): wee_slack.EVENTROUTER = realish_eventrouter + 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), - auto_link_display=case.get('auto_link_display', 'both'), + ignore_alt_text=case.get('ignore_alt_text', False) ) assert result == case['output'] |