Skip to content

Commit

Permalink
more integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyagreco committed Sep 9, 2024
1 parent 0f96dfe commit 32ca197
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/integration/test_api/test_avatar.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@ class TestAvatar(unittest.TestCase):
with open(os.path.join(_PATH_TO_TEST_DIR, "sleeper.bin"), "rb") as image:
SLEEPER_AVATAR_BYTES = image.read()

def test_get_avatar(self):
with open(os.path.join(_PATH_TO_TEST_DIR, "sleeper_thumb.bin"), "rb") as image:
SLEEPER_THUMBNAIL_AVATAR_BYTES = image.read()

def test_get_avatar_defaults(self):
response = get_avatar(avatar_id=USER_B_AVATAR_ID)

self.assertEqual(self.SLEEPER_AVATAR_BYTES, response)

def test_get_avatar_as_thumbnail(self):
response = get_avatar(avatar_id=USER_B_AVATAR_ID, as_thumbnail=True)

self.assertEqual(self.SLEEPER_THUMBNAIL_AVATAR_BYTES, response)
Binary file added test/integration/util/bin/sleeper_thumb.bin
Binary file not shown.

0 comments on commit 32ca197

Please sign in to comment.