From 55accb67e8e5e24ea6c03a07f4cb5e6a1fb80f17 Mon Sep 17 00:00:00 2001 From: thecosmos Date: Sat, 8 Feb 2020 14:35:42 +0530 Subject: [PATCH] Test suit for user connections --- tests/test_app.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/test_app.py b/tests/test_app.py index 92ea2c4..9573887 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -35,6 +35,24 @@ def me(): {user.name} +Connections + + + +""" + + +@app.route("/me/connections/") +def my_connections(): + user = discord.fetch_user() + connections = discord.fetch_connections() + return f""" + + +{user.name} + + +{str([f"{connection.name} - {connection.type}" for connection in connections])}