diff options
author | 2022-10-27 01:46:27 +0400 | |
---|---|---|
committer | 2022-10-27 01:49:48 +0400 | |
commit | 71319de89593978de8d6725d1b405d8735d100a5 (patch) | |
tree | 6cabe7bb3a4688d0484583287e1114c71faf5a66 /pydis_site/apps/api/tests | |
parent | Rename Tag Model Author Field (diff) | |
parent | Update off-topic etiquette to reflect server size (#785) (diff) |
Merge branch 'main' into bot-tags
Signed-off-by: Hassan Abouelela <[email protected]>
# Conflicts:
# poetry.lock
# pydis_site/settings.py
# pyproject.toml
Diffstat (limited to 'pydis_site/apps/api/tests')
-rw-r--r-- | pydis_site/apps/api/tests/test_filterlists.py | 4 | ||||
-rw-r--r-- | pydis_site/apps/api/tests/test_github_utils.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pydis_site/apps/api/tests/test_filterlists.py b/pydis_site/apps/api/tests/test_filterlists.py index 5a5bca60..9959617e 100644 --- a/pydis_site/apps/api/tests/test_filterlists.py +++ b/pydis_site/apps/api/tests/test_filterlists.py @@ -64,8 +64,8 @@ class FetchTests(AuthenticatedAPITestCase): self.assertEqual(response.status_code, 200) for api_type, model_type in zip(response.json(), FilterList.FilterListType.choices): - self.assertEquals(api_type[0], model_type[0]) - self.assertEquals(api_type[1], model_type[1]) + self.assertEqual(api_type[0], model_type[0]) + self.assertEqual(api_type[1], model_type[1]) class CreationTests(AuthenticatedAPITestCase): diff --git a/pydis_site/apps/api/tests/test_github_utils.py b/pydis_site/apps/api/tests/test_github_utils.py index 6e25bc80..95bafec0 100644 --- a/pydis_site/apps/api/tests/test_github_utils.py +++ b/pydis_site/apps/api/tests/test_github_utils.py @@ -29,7 +29,7 @@ class GeneralUtilityTests(unittest.TestCase): """ self.assertEqual("RS256", algorithm, "The GitHub App JWT must be signed using RS256.") return original_encode( - payload, "secret-encoding-key", algorithm="HS256", *args, **kwargs + payload, "secret-encoding-key", *args, algorithm="HS256", **kwargs ) original_encode = jwt.encode |