Skip to content

Commit bde6dfd

Browse files
committed
ci: add more tests
1 parent 42f1efe commit bde6dfd

10 files changed

Lines changed: 389 additions & 58 deletions

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ docs/_build/
44
dist/
55
.ruff_cache/
66
.vscode/
7-
.coverage
7+
.coverage
8+
coverage*
9+
junit.xml

MANIFEST.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ exclude .gitattributes
77
exclude .gitignore
88
exclude .readthedocs.yml
99
exclude ruff.toml
10-
exclude LICENSE
10+
exclude LICENSE
11+
exclude coverage*
12+
exclude junit.xml

tests/mocks/compare_bots.json

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"data": [
3+
{
4+
"id": "432610292342587392",
5+
"topGGId": "432610292342587392",
6+
"owners": [
7+
"275748765166469120"
8+
],
9+
"deleted": false,
10+
"name": "Mudae",
11+
"def_avatar": "1.png",
12+
"short_desc": "Database of 135,000 anime/game characters: make and customize the best collection in your server. 400 commands, multiplayer games and more!",
13+
"prefix": "$",
14+
"approved_at": "2018-04-21T21:17:57.793Z",
15+
"monthly_votes": 876511,
16+
"server_count": 3371839,
17+
"total_votes": 243100324,
18+
"review_count": 13805,
19+
"monthly_votes_rank": 1,
20+
"server_count_rank": 15,
21+
"total_votes_rank": 1,
22+
"timestamp": "2025-12-11T19:00:00Z",
23+
"unix_timestamp": "1765479600000",
24+
"tags": [
25+
"anime",
26+
"database",
27+
"fun",
28+
"game"
29+
],
30+
"avg_review_rating": 4.505686345526983,
31+
"percentage_changes": {
32+
"daily": 0.32,
33+
"monthly": 0.89
34+
},
35+
"certified": false,
36+
"avatar": "https://cdn.discordapp.com/avatars/432610292342587392/29cb28fbf65a3958105026ab03abd306.webp?size=256",
37+
"lib": "",
38+
"website": "https://www.patreon.com/mudae"
39+
},
40+
{
41+
"id": "1026525568344264724",
42+
"topGGId": "1026525568344264724",
43+
"owners": [
44+
"121919449996460033"
45+
],
46+
"deleted": false,
47+
"name": "Top.gg Lib Dev API Access",
48+
"def_avatar": "1.png",
49+
"short_desc": "API access for Top.gg Library Developers",
50+
"prefix": "/",
51+
"approved_at": "2022-10-03T16:08:55.292Z",
52+
"monthly_votes": 0,
53+
"server_count": 2,
54+
"total_votes": 28,
55+
"review_count": 2,
56+
"monthly_votes_rank": 3036,
57+
"server_count_rank": 9615,
58+
"total_votes_rank": 16004,
59+
"timestamp": "2025-12-11T19:00:00Z",
60+
"unix_timestamp": "1765479600000",
61+
"tags": [
62+
"api",
63+
"library",
64+
"topgg"
65+
],
66+
"avg_review_rating": 5,
67+
"percentage_changes": {
68+
"daily": 0,
69+
"monthly": 0
70+
},
71+
"certified": false,
72+
"avatar": "https://cdn.discordapp.com/avatars/1026525568344264724/cd70e62e41f691f1c05c8455d8c31e23.png",
73+
"lib": "",
74+
"website": ""
75+
}
76+
]
77+
}

tests/mocks/get_users_bot.json

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
{
2+
"bots": [
3+
{
4+
"id": "896713090782068749",
5+
"owners": [
6+
"121919449996460033"
7+
],
8+
"deleted": false,
9+
"name": "Partake Bot",
10+
"avatar": "https://external-cdn.top.gg/discord/bots/896713090782068749/07517480ffe63b53ca5d75d0ee1b28f4.webp",
11+
"short_desc": "Find your virtual place to be - Experience the true end-game with the easiest way to discover and plan social events for Final Fantasy XIV",
12+
"lib": "",
13+
"prefix": "pv!",
14+
"website": "https://partyverse.app/",
15+
"approved_at": "2022-02-20T03:58:18.086Z",
16+
"monthly_votes": 0,
17+
"server_count": 0,
18+
"total_votes": 17,
19+
"monthly_votes_rank": 40750,
20+
"server_count_rank": 41342,
21+
"total_votes_rank": 20188,
22+
"timestamp": "2025-12-11T19:00:00Z",
23+
"unix_timestamp": "1765479600000"
24+
},
25+
{
26+
"id": "422087909634736160",
27+
"owners": [
28+
"121919449996460033"
29+
],
30+
"deleted": false,
31+
"name": "Top.gg",
32+
"avatar": "https://cdn.discordapp.com/avatars/422087909634736160/d41e1166aadbba1fd62f6c43e2a15777.webp?size=256",
33+
"short_desc": "The official Discord bot for Top.gg!",
34+
"lib": "",
35+
"prefix": "N/A",
36+
"website": "https://top.gg/discord/servers",
37+
"approved_at": "2018-03-31T09:45:37.000Z",
38+
"monthly_votes": 3,
39+
"server_count": 260000,
40+
"total_votes": 8604,
41+
"monthly_votes_rank": 1480,
42+
"server_count_rank": 105,
43+
"total_votes_rank": 742,
44+
"timestamp": "2025-12-11T19:00:00Z",
45+
"unix_timestamp": "1765479600000"
46+
},
47+
{
48+
"id": "1027977768350257173",
49+
"owners": [
50+
"121919449996460033"
51+
],
52+
"deleted": true,
53+
"name": "Miki Anime",
54+
"avatar": "https://cdn.discordapp.com/avatars/1027977768350257173/287aec0ad8a65ce3ca23400571401560.png",
55+
"short_desc": "1027977768350257173",
56+
"lib": "",
57+
"prefix": "2",
58+
"website": "",
59+
"approved_at": "2025-02-25T03:02:25.000Z",
60+
"monthly_votes": 0,
61+
"server_count": 0,
62+
"total_votes": 0,
63+
"monthly_votes_rank": 5064,
64+
"server_count_rank": 10395,
65+
"total_votes_rank": 41297,
66+
"timestamp": "2025-02-25T21:00:00.000Z",
67+
"unix_timestamp": "1740517200000"
68+
},
69+
{
70+
"id": "1026525568344264724",
71+
"owners": [
72+
"121919449996460033"
73+
],
74+
"deleted": false,
75+
"name": "Top.gg Lib Dev API Access",
76+
"avatar": "https://cdn.discordapp.com/avatars/1026525568344264724/cd70e62e41f691f1c05c8455d8c31e23.png",
77+
"short_desc": "API access for Top.gg Library Developers",
78+
"lib": "",
79+
"prefix": "/",
80+
"website": "",
81+
"approved_at": "2022-10-03T16:08:55.292Z",
82+
"monthly_votes": 0,
83+
"server_count": 2,
84+
"total_votes": 28,
85+
"monthly_votes_rank": 3036,
86+
"server_count_rank": 9615,
87+
"total_votes_rank": 16004,
88+
"timestamp": "2025-12-11T19:00:00Z",
89+
"unix_timestamp": "1765479600000"
90+
},
91+
{
92+
"id": "160105994217586689",
93+
"owners": [
94+
"121919449996460033"
95+
],
96+
"deleted": false,
97+
"name": "Miki",
98+
"avatar": "https://cdn.discordapp.com/avatars/160105994217586689/c49b5a905659a3793965a97cc6a6e6e9.webp?size=256",
99+
"short_desc": "A great bot with tons of features! language | admin | cards | fun | levels | roles | marriage | currency | custom commands! ",
100+
"lib": "",
101+
"prefix": "/ (or @mention) ",
102+
"website": "http://miki.bot",
103+
"approved_at": "2017-04-26T00:06:40.000Z",
104+
"monthly_votes": 1344,
105+
"server_count": 290000,
106+
"total_votes": 313613,
107+
"monthly_votes_rank": 123,
108+
"server_count_rank": 93,
109+
"total_votes_rank": 131,
110+
"timestamp": "2025-12-11T19:00:00Z",
111+
"unix_timestamp": "1765479600000"
112+
}
113+
]
114+
}

0 commit comments

Comments
 (0)