From 3eb729847d5fae6480163f09edcd1fda599e3eb7 Mon Sep 17 00:00:00 2001 From: Martin Lees <drov0@users.noreply.github.com> Date: Mon, 22 Aug 2022 00:18:09 -0400 Subject: [PATCH] Fix pattern tests following changes in mocks --- .../account_notifications/coinfox.pat.json | 2 +- .../account_notifications/dantheman.pat.json | 10 +++++----- .../account_notifications/gtg.pat.json | 4 ++-- .../account_notifications/max_score.pat.json | 2 +- .../account_notifications/min_score.pat.json | 10 +++++----- .../get_trending_topics/limit_as_string.pat.json | 4 ++++ .../get_trending_topics/max_limit.pat.json | 4 ++++ .../with_gtg_observer.pat.json | 4 ++++ .../list_communities/empty_last.pat.json | 16 ++++++++++++++++ .../list_communities/max_limit.pat.json | 16 ++++++++++++++++ .../list_communities/max_limit_new.pat.json | 16 ++++++++++++++++ .../list_communities/max_limit_rank.pat.json | 16 ++++++++++++++++ .../list_communities/max_limit_subs.pat.json | 16 ++++++++++++++++ .../list_communities/no_parameters.pat.json | 16 ++++++++++++++++ .../list_communities/page_2.pat.json | 16 ++++++++++++++++ .../list_pop_communities/limit_25.pat.json | 4 ++++ .../list_pop_communities/list.pat.json | 4 ++++ 17 files changed, 146 insertions(+), 14 deletions(-) diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/coinfox.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/coinfox.pat.json index a83814c41..48dce7a8f 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/coinfox.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/coinfox.pat.json @@ -1,7 +1,7 @@ [ { "date": "2016-09-15T19:44:18", - "id": 2010441, + "id": 2010444, "msg": "@vitaly-lvov mentioned you and 1 others", "score": 50, "type": "mention", diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/dantheman.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/dantheman.pat.json index 66676cea3..8be943bd4 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/dantheman.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/dantheman.pat.json @@ -1,7 +1,7 @@ [ { "date": "2016-09-15T19:23:54", - "id": 2010033, + "id": 2010036, "msg": "@rusla followed you", "score": 50, "type": "follow", @@ -9,7 +9,7 @@ }, { "date": "2016-09-15T18:41:03", - "id": 2008818, + "id": 2008821, "msg": "@dolphindigest mentioned you and 10 others", "score": 50, "type": "mention", @@ -17,7 +17,7 @@ }, { "date": "2016-09-15T18:37:45", - "id": 2008725, + "id": 2008728, "msg": "@dolphindigest mentioned you and 12 others", "score": 50, "type": "mention", @@ -25,7 +25,7 @@ }, { "date": "2016-09-15T18:18:54", - "id": 2008126, + "id": 2008129, "msg": "@linkback-bot-v0 mentioned you and 3 others", "score": 50, "type": "mention", @@ -33,7 +33,7 @@ }, { "date": "2016-09-15T18:18:54", - "id": 2008125, + "id": 2008128, "msg": "@linkback-bot-v0 replied to your post", "score": 50, "type": "reply", diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/gtg.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/gtg.pat.json index 85234a3e5..50a0d4daa 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/gtg.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/gtg.pat.json @@ -1,7 +1,7 @@ [ { "date": "2016-09-15T18:55:30", - "id": 2009380, + "id": 2009383, "msg": "@liondani voted on your post ($0.27)", "score": 50, "type": "vote", @@ -9,7 +9,7 @@ }, { "date": "2016-09-15T18:52:09", - "id": 2009297, + "id": 2009300, "msg": "@chitty replied to your comment", "score": 70, "type": "reply_comment", diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/max_score.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/max_score.pat.json index 65a7afab5..2a8203fc6 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/max_score.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/max_score.pat.json @@ -1,7 +1,7 @@ [ { "date": "2016-09-15T18:21:03", - "id": 2008214, + "id": 2008217, "msg": "@kushed voted on your post ($10.40)", "score": 100, "type": "vote", diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/min_score.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/min_score.pat.json index e37d350aa..43906f19d 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/min_score.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/min_score.pat.json @@ -1,7 +1,7 @@ [ { "date": "2016-09-15T19:41:33", - "id": 2010385, + "id": 2010388, "msg": "@nippel66 voted on your post ($0.03)", "score": 25, "type": "vote", @@ -9,7 +9,7 @@ }, { "date": "2016-09-15T18:57:51", - "id": 2009442, + "id": 2009445, "msg": "@edgeland voted on your post ($0.28)", "score": 50, "type": "vote", @@ -17,7 +17,7 @@ }, { "date": "2016-09-15T18:56:00", - "id": 2009415, + "id": 2009418, "msg": "@kurtbeil replied to your post", "score": 50, "type": "reply", @@ -25,7 +25,7 @@ }, { "date": "2016-09-15T18:36:15", - "id": 2008674, + "id": 2008677, "msg": "@pjheinz followed you", "score": 60, "type": "follow", @@ -33,7 +33,7 @@ }, { "date": "2016-09-15T18:09:45", - "id": 2007957, + "id": 2007960, "msg": "@honeyscribe replied to your comment", "score": 70, "type": "reply_comment", diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/limit_as_string.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/limit_as_string.pat.json index d1cab183c..45c29bed4 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/limit_as_string.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/limit_as_string.pat.json @@ -39,6 +39,10 @@ "hive-104647", "hive-104647" ], + [ + "hive-199999", + "hive-199999" + ], [ "hive-167892", "hive-167892" diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/max_limit.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/max_limit.pat.json index d1cab183c..45c29bed4 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/max_limit.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/max_limit.pat.json @@ -39,6 +39,10 @@ "hive-104647", "hive-104647" ], + [ + "hive-199999", + "hive-199999" + ], [ "hive-167892", "hive-167892" diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/with_gtg_observer.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/with_gtg_observer.pat.json index d1cab183c..45c29bed4 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/with_gtg_observer.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/with_gtg_observer.pat.json @@ -39,6 +39,10 @@ "hive-104647", "hive-104647" ], + [ + "hive-199999", + "hive-199999" + ], [ "hive-167892", "hive-167892" diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/empty_last.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/empty_last.pat.json index 27c46c450..7ebcf604b 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/empty_last.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/empty_last.pat.json @@ -177,6 +177,22 @@ "title": "@hive-104647", "type_id": 1 }, + { + "about": "", + "avatar_url": "", + "context": {}, + "created_at": "2016-09-15 18:02:06", + "id": 92483, + "is_nsfw": false, + "lang": "en", + "name": "hive-199999", + "num_authors": 0, + "num_pending": 0, + "subscribers": 1, + "sum_pending": 0, + "title": "@hive-199999", + "type_id": 1 + }, { "about": "", "avatar_url": "", diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit.pat.json index 27c46c450..7ebcf604b 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit.pat.json @@ -177,6 +177,22 @@ "title": "@hive-104647", "type_id": 1 }, + { + "about": "", + "avatar_url": "", + "context": {}, + "created_at": "2016-09-15 18:02:06", + "id": 92483, + "is_nsfw": false, + "lang": "en", + "name": "hive-199999", + "num_authors": 0, + "num_pending": 0, + "subscribers": 1, + "sum_pending": 0, + "title": "@hive-199999", + "type_id": 1 + }, { "about": "", "avatar_url": "", diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit_new.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit_new.pat.json index 8d1cf269e..b15e50ca6 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit_new.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit_new.pat.json @@ -1,4 +1,20 @@ [ + { + "about": "", + "avatar_url": "", + "context": {}, + "created_at": "2016-09-15 18:02:06", + "id": 92483, + "is_nsfw": false, + "lang": "en", + "name": "hive-199999", + "num_authors": 0, + "num_pending": 0, + "subscribers": 1, + "sum_pending": 0, + "title": "@hive-199999", + "type_id": 1 + }, { "about": "", "avatar_url": "", diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit_rank.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit_rank.pat.json index 27c46c450..7ebcf604b 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit_rank.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit_rank.pat.json @@ -177,6 +177,22 @@ "title": "@hive-104647", "type_id": 1 }, + { + "about": "", + "avatar_url": "", + "context": {}, + "created_at": "2016-09-15 18:02:06", + "id": 92483, + "is_nsfw": false, + "lang": "en", + "name": "hive-199999", + "num_authors": 0, + "num_pending": 0, + "subscribers": 1, + "sum_pending": 0, + "title": "@hive-199999", + "type_id": 1 + }, { "about": "", "avatar_url": "", diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit_subs.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit_subs.pat.json index b326c6298..7281b8e60 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit_subs.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit_subs.pat.json @@ -177,6 +177,22 @@ "title": "@hive-104647", "type_id": 1 }, + { + "about": "", + "avatar_url": "", + "context": {}, + "created_at": "2016-09-15 18:02:06", + "id": 92483, + "is_nsfw": false, + "lang": "en", + "name": "hive-199999", + "num_authors": 0, + "num_pending": 0, + "subscribers": 1, + "sum_pending": 0, + "title": "@hive-199999", + "type_id": 1 + }, { "about": "", "avatar_url": "", diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/no_parameters.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/no_parameters.pat.json index 27c46c450..7ebcf604b 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/no_parameters.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/no_parameters.pat.json @@ -177,6 +177,22 @@ "title": "@hive-104647", "type_id": 1 }, + { + "about": "", + "avatar_url": "", + "context": {}, + "created_at": "2016-09-15 18:02:06", + "id": 92483, + "is_nsfw": false, + "lang": "en", + "name": "hive-199999", + "num_authors": 0, + "num_pending": 0, + "subscribers": 1, + "sum_pending": 0, + "title": "@hive-199999", + "type_id": 1 + }, { "about": "", "avatar_url": "", diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/page_2.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/page_2.pat.json index f51f5716f..24e0bb62a 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/page_2.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/page_2.pat.json @@ -15,6 +15,22 @@ "title": "@hive-104647", "type_id": 1 }, + { + "about": "", + "avatar_url": "", + "context": {}, + "created_at": "2016-09-15 18:02:06", + "id": 92483, + "is_nsfw": false, + "lang": "en", + "name": "hive-199999", + "num_authors": 0, + "num_pending": 0, + "subscribers": 1, + "sum_pending": 0, + "title": "@hive-199999", + "type_id": 1 + }, { "about": "", "avatar_url": "", diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_pop_communities/limit_25.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_pop_communities/limit_25.pat.json index 661647f9f..303e5697a 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_pop_communities/limit_25.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_pop_communities/limit_25.pat.json @@ -39,6 +39,10 @@ "hive-104647", "" ], + [ + "hive-199999", + "" + ], [ "hive-167892", "" diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_pop_communities/list.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_pop_communities/list.pat.json index 661647f9f..303e5697a 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_pop_communities/list.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_pop_communities/list.pat.json @@ -39,6 +39,10 @@ "hive-104647", "" ], + [ + "hive-199999", + "" + ], [ "hive-167892", "" -- GitLab