mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-21 02:07:06 +02:00
comment py_test out
This commit is contained in:
1 parent
61b69e75a8
commit
a475dd18a2
1 file changed
+11
-11
+11
-11
@@ -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__":
|
||||
|
||||
Reference in new issue
Block a user