From c10f41397abebde67111f6d773cbcf3615afd6a9 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Thu, 13 Jun 2019 00:07:52 +0200 Subject: 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). --- _pytest/data/http/rtm.start.json | 2 ++ 1 file changed, 2 insertions(+) (limited to '_pytest/data/http/rtm.start.json') 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", -- cgit