aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2019-06-13 00:07:52 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2019-08-07 19:18:06 +0200
commitc10f41397abebde67111f6d773cbcf3615afd6a9 (patch)
treef09ca4d2af708653438c680af04aa90069945ee7 /_pytest
parent4a03c7a8cdf64413a781e2a56940f2d16299565d (diff)
downloadwee-slack-c10f41397abebde67111f6d773cbcf3615afd6a9.tar.gz
Fallback to full name if display name is not set
The username can't be changed by the users themselves now and is auto generated for new users, so we shouldn't use it. Only use username as a last resort if neither display name nor full name is set (I'm not sure this ever happens, it looks like the full name field is mandatory).
Diffstat (limited to '_pytest')
-rw-r--r--_pytest/data/http/rtm.start.json2
1 files changed, 2 insertions, 0 deletions
diff --git a/_pytest/data/http/rtm.start.json b/_pytest/data/http/rtm.start.json
index 2d0a36a..03aeaf3 100644
--- a/_pytest/data/http/rtm.start.json
+++ b/_pytest/data/http/rtm.start.json
@@ -738,6 +738,8 @@
"avatar_hash": "gfd0ce7a168d",
"real_name": "First Testuser",
"real_name_normalized": "First Testuser",
+ "display_name": "alice",
+ "display_name_normalized": "alice",
"email": "redacted1@gmail.com",
"image_24": "https:\/\/secure.gravatar.com\/avatar\/fd0ce7a168dc2235d21c53c2c1cfee0c.jpg?s=24&d=https%3A%2F%2Fa.slack-edge.com%2F66f9%2Fimg%2Favatars%2Fava_0024-24.png",
"image_32": "https:\/\/secure.gravatar.com\/avatar\/fd0ce7a168dc2235d21c53c2c1cfee0c.jpg?s=32&d=https%3A%2F%2Fa.slack-edge.com%2F66f9%2Fimg%2Favatars%2Fava_0024-32.png",