summaryrefslogtreecommitdiff
path: root/tests/test_profile.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_profile.py')
-rw-r--r--tests/test_profile.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/test_profile.py b/tests/test_profile.py
index 5e7308a..1e21ecc 100644
--- a/tests/test_profile.py
+++ b/tests/test_profile.py
@@ -51,7 +51,7 @@ def test_profile(account, profile):
resp = profile.get_a("/profile")
assert resp == {
'amrValues': None,
- 'avatar': 'http://localhost:8000/avatars/00000000000000000000000000000000',
+ 'avatar': f'http://localhost:{API_PORT}/avatars/00000000000000000000000000000000',
'avatarDefault': True,
'displayName': None,
'email': account.email,
@@ -65,7 +65,7 @@ def test_display_name(account, profile):
resp = profile.get_a("/profile")
assert resp == {
'amrValues': None,
- 'avatar': 'http://localhost:8000/avatars/00000000000000000000000000000000',
+ 'avatar': f'http://localhost:{API_PORT}/avatars/00000000000000000000000000000000',
'avatarDefault': True,
'displayName': None,
'email': account.email,
@@ -78,7 +78,7 @@ def test_display_name(account, profile):
resp = profile.get_a("/profile")
assert resp == {
'amrValues': None,
- 'avatar': 'http://localhost:8000/avatars/00000000000000000000000000000000',
+ 'avatar': f'http://localhost:{API_PORT}/avatars/00000000000000000000000000000000',
'avatarDefault': True,
'displayName': 'foo',
'email': account.email,
@@ -91,7 +91,7 @@ def test_display_name(account, profile):
def test_avatar(account, profile):
resp = profile.get_a("/avatar")
assert resp == {
- 'avatar': 'http://localhost:8000/avatars/00000000000000000000000000000000',
+ 'avatar': f'http://localhost:{API_PORT}/avatars/00000000000000000000000000000000',
'avatarDefault': True,
'id': '00000000000000000000000000000000'
}
@@ -101,11 +101,11 @@ def test_avatar_upload(account, profile):
profile.post_a("/avatar/upload", "foo", headers={'content-type': 'image/png'})
resp = profile.get_a("/avatar")
new_id = resp['id']
- assert resp['avatar'] != 'http://localhost:8000/avatars/00000000000000000000000000000000'
+ assert resp['avatar'] != f'http://localhost:{API_PORT}/avatars/00000000000000000000000000000000'
assert not resp['avatarDefault']
assert resp['id'] != '00000000000000000000000000000000'
resp = profile.get_a("/profile")
- assert resp['avatar'] != 'http://localhost:8000/avatars/00000000000000000000000000000000'
+ assert resp['avatar'] != f'http://localhost:{API_PORT}/avatars/00000000000000000000000000000000'
assert not resp['avatarDefault']
def test_avatar_delete(account, profile):
@@ -116,14 +116,14 @@ def test_avatar_delete(account, profile):
profile.delete_a(f"/avatar/{new_id}")
resp = profile.get_a("/avatar")
assert resp == {
- 'avatar': 'http://localhost:8000/avatars/00000000000000000000000000000000',
+ 'avatar': f'http://localhost:{API_PORT}/avatars/00000000000000000000000000000000',
'avatarDefault': True,
'id': '00000000000000000000000000000000'
}
resp = profile.get_a("/profile")
assert resp == {
'amrValues': None,
- 'avatar': 'http://localhost:8000/avatars/00000000000000000000000000000000',
+ 'avatar': f'http://localhost:{API_PORT}/avatars/00000000000000000000000000000000',
'avatarDefault': True,
'displayName': None,
'email': account.email,