aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-02-05 12:08:23 -0800
committerGravatar MarkKoz <[email protected]>2020-02-12 10:07:57 -0800
commitdf1e4f10b4ffc6a514528d03d10d3854385986ac (patch)
treee2704edacf859c58fb83df3cf5e91a4bc3a8f0d9
parentSync tests: test Sync cog's on_member_update for other attributes (diff)
Sync tests: fix ID in endpoint for test_sync_cog_on_member_remove
-rw-r--r--tests/bot/cogs/sync/test_cog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bot/cogs/sync/test_cog.py b/tests/bot/cogs/sync/test_cog.py
index 36945b82e..75165a5b2 100644
--- a/tests/bot/cogs/sync/test_cog.py
+++ b/tests/bot/cogs/sync/test_cog.py
@@ -213,7 +213,7 @@ class SyncCogListenerTests(SyncCogTestCase):
"name": member.name,
"roles": sorted(role.id for role in member.roles)
}
- self.bot.api_client.put.assert_called_once_with("bot/users/88", json=json_data)
+ self.bot.api_client.put.assert_called_once_with(f"bot/users/{member.id}", json=json_data)
def test_sync_cog_on_member_update_roles(self):
"""Members should be patched if their roles have changed."""