From a475dd18a2196d8a6f2c61c48a2de397ec484247 Mon Sep 17 00:00:00 2001 From: Jylpah Date: Thu, 5 Nov 2020 23:33:18 +0200 Subject: [PATCH] comment py_test out --- upload_wotb_replays.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/upload_wotb_replays.py b/upload_wotb_replays.py index ccb026a..38b8db3 100755 --- a/upload_wotb_replays.py +++ b/upload_wotb_replays.py @@ -304,7 +304,7 @@ def getTitle(replayfile: str, title: str = None, i : int = 0) -> str: ### UNIT TESTS - pytest -class TestClass: +# class TestClass: # def test_getTitle(self): # #player = "jylpah" # WG_appID = '81381d3f45fa4aa75b78a7198eb216ad' @@ -316,17 +316,17 @@ class TestClass: # assert getTitle(replay) == res - @pytest.mark.asyncio - async def test_getTitle(self): - #player = "jylpah" - WG_appID = '81381d3f45fa4aa75b78a7198eb216ad' - wg = WG(WG_appID, 'tanks.json', 'maps.json') - tank_name = "T28 Defender" # "A68_T28D" - map_name = "Yukon" # "idle" - replay = './test/' + '20201030_2358__jylpah_A_1157485188135816346.wotbreplay' - res = tank_name + ' @ ' + map_name + # @pytest.mark.asyncio + # async def test_getTitle(self): + # #player = "jylpah" + # WG_appID = '81381d3f45fa4aa75b78a7198eb216ad' + # wg = WG(WG_appID, 'tanks.json', 'maps.json') + # tank_name = "T28 Defender" # "A68_T28D" + # map_name = "Yukon" # "idle" + # replay = './test/' + '20201030_2358__jylpah_A_1157485188135816346.wotbreplay' + # res = tank_name + ' @ ' + map_name - assert getTitle(replay) == res + # assert getTitle(replay) == res ### main() ------------------------------------------- if __name__ == "__main__":