aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_formatting.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-05-22 22:05:36 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2020-05-22 22:48:00 +0200
commitdc21bf1ff42d80645677abcd3c51a52098843c9e (patch)
tree02262fb929c40f750b0b366406635460364c8ded /_pytest/test_formatting.py
parent00382056e72401db918ee253195c41d7dae6476c (diff)
downloadwee-slack-dc21bf1ff42d80645677abcd3c51a52098843c9e.tar.gz
Use if/else instead of a dict in formatted_name
I mainly did this because I'm going to call formatted_name with style=default before team is set, and that didn't work as it was because the other styles used the team. For SlackDMChannel I moved colorizing into the branch for the sidebar style because colors should never be included in the other styles. formatted_name is never called with enable_color=True and another style than sidebar, so the behavior doesn't change.
Diffstat (limited to '_pytest/test_formatting.py')
0 files changed, 0 insertions, 0 deletions