From 8f12f3c7fc96756f62408bca8cd4fd2ab635c4cf Mon Sep 17 00:00:00 2001 From: SharpBit <31069084+SharpBit@users.noreply.github.com> Date: Mon, 17 Feb 2020 11:37:15 -0500 Subject: [PATCH] uncomment some tests for broken endpoints (misc) --- tests/brawlapi/test_async.py | 9 ++++----- tests/brawlapi/test_blocking.py | 9 ++++----- tests/officialapi/test_async.py | 1 - tests/officialapi/test_blocking.py | 1 - 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/tests/brawlapi/test_async.py b/tests/brawlapi/test_async.py index 1eb20e1..997d2f3 100644 --- a/tests/brawlapi/test_async.py +++ b/tests/brawlapi/test_async.py @@ -1,6 +1,6 @@ import asynctest import asyncio -# import datetime +import datetime import os import brawlstats @@ -78,9 +78,9 @@ async def request(): invalid_key = 'invalid' self.assertRaises(KeyError, request) - # async def test_get_misc(self): - # misc = await self.client.get_misc() - # self.assertEqual(misc.server_date_year, datetime.date.today().year) + async def test_get_misc(self): + misc = await self.client.get_misc() + self.assertEqual(misc.server_date_year, datetime.date.today().year) async def test_club_search(self): search = await self.client.search_club('Cactus Bandits') @@ -90,7 +90,6 @@ async def test_battle_logs(self): logs = await self.client.get_battle_logs(self.player_tag) self.assertIsInstance(logs, BattleLog) - # Other async def test_invalid_tag(self): async def request(): await self.client.get_player(invalid_tag) diff --git a/tests/brawlapi/test_blocking.py b/tests/brawlapi/test_blocking.py index 2c4b3c3..e78b361 100644 --- a/tests/brawlapi/test_blocking.py +++ b/tests/brawlapi/test_blocking.py @@ -1,4 +1,4 @@ -# import datetime +import datetime import unittest import os import time @@ -77,9 +77,9 @@ def test_get_constants(self): invalid_key = 'invalid' self.assertRaises(KeyError, get_constants, invalid_key) - # def test_get_misc(self): - # misc = self.client.get_misc() - # self.assertEqual(misc.server_date_year, datetime.date.today().year) + def test_get_misc(self): + misc = self.client.get_misc() + self.assertEqual(misc.server_date_year, datetime.date.today().year) def test_club_search(self): search = self.client.search_club('Cactus Bandits') @@ -89,7 +89,6 @@ def test_battle_logs(self): logs = self.client.get_battle_logs(self.player_tag) self.assertIsInstance(logs, BattleLog) - # Other def test_invalid_tag(self): get_player = self.client.get_player invalid_tag = 'P' diff --git a/tests/officialapi/test_async.py b/tests/officialapi/test_async.py index d442c3e..9b53731 100644 --- a/tests/officialapi/test_async.py +++ b/tests/officialapi/test_async.py @@ -81,7 +81,6 @@ async def test_battle_logs(self): logs = await self.client.get_battle_logs(self.player_tag) self.assertIsInstance(logs, BattleLog) - # Other async def test_invalid_tag(self): async def request(): await self.client.get_player(invalid_tag) diff --git a/tests/officialapi/test_blocking.py b/tests/officialapi/test_blocking.py index cbf8dd4..d5e9d48 100644 --- a/tests/officialapi/test_blocking.py +++ b/tests/officialapi/test_blocking.py @@ -78,7 +78,6 @@ def test_battle_logs(self): logs = self.client.get_battle_logs(self.player_tag) self.assertIsInstance(logs, BattleLog) - # Other def test_invalid_tag(self): get_player = self.client.get_player invalid_tag = 'P'