-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa87fa2
commit 0f96dfe
Showing
4 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,4 +127,8 @@ dmypy.json | |
|
||
# all files with "_dnm." in them like foo_dnm.py (dnm = do not merge) | ||
*_dnm.* | ||
*_dnc.* | ||
|
||
.DS_Store | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import os | ||
import unittest | ||
|
||
from sleeper.api.avatar import get_avatar | ||
from test.integration.test_api.constants import USER_B_AVATAR_ID | ||
|
||
|
||
class TestAvatar(unittest.TestCase): | ||
_PATH_TO_TEST_DIR = os.path.abspath( | ||
os.path.join(os.path.dirname(__file__), "..", "util", "bin") | ||
) | ||
|
||
with open(os.path.join(_PATH_TO_TEST_DIR, "sleeper.bin"), "rb") as image: | ||
SLEEPER_AVATAR_BYTES = image.read() | ||
|
||
def test_get_avatar(self): | ||
response = get_avatar(avatar_id=USER_B_AVATAR_ID) | ||
|
||
self.assertEqual(self.SLEEPER_AVATAR_BYTES, response) |
Binary file not shown.