Test suit for user connections

This commit is contained in:
thecosmos
2020-02-08 14:35:42 +05:30
parent 85f1472665
commit 55accb67e8

View File

@@ -35,6 +35,24 @@ def me():
<title>{user.name}</title> <title>{user.name}</title>
</head> </head>
<body><img src='{user.avatar_url}' /> <body><img src='{user.avatar_url}' />
<a href={url_for("my_connections")}>Connections</a>
</body>
</html>
"""
@app.route("/me/connections/")
def my_connections():
user = discord.fetch_user()
connections = discord.fetch_connections()
return f"""
<html>
<head>
<title>{user.name}</title>
</head>
<body>
{str([f"{connection.name} - {connection.type}" for connection in connections])}
</body> </body>
</html> </html>