Skip to content

Commit 428c60f

Browse files
authored
Merge branch 'main' into dev
2 parents 1500f04 + 1e26e4c commit 428c60f

2 files changed

Lines changed: 21 additions & 4 deletions

File tree

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
aiohttp
2+
requests

test.py

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,31 @@
1414
class CSGOTest(unittest.TestCase):
1515
def test_get_profile(self):
1616
for p in csgo_profile_list:
17-
print(loop.run_until_complete(csgo_client.get_profile(p)))
17+
try:
18+
print(loop.run_until_complete(csgo_client.get_profile(p)))
19+
except AssertionError:
20+
pass
1821

1922
def test_get_map_segment(self):
2023
for p in csgo_profile_list:
21-
print(loop.run_until_complete(csgo_client.get_map_segment(p)))
24+
try:
25+
print(loop.run_until_complete(csgo_client.get_map_segment(p)))
26+
except AssertionError:
27+
pass
2228

2329
def test_get_weapon_segment(self):
2430
for p in csgo_profile_list:
25-
print(loop.run_until_complete(csgo_client.get_weapon_segment(p)))
31+
try:
32+
print(loop.run_until_complete(csgo_client.get_weapon_segment(p)))
33+
except AssertionError:
34+
pass
2635

2736
def test_search_profile(self):
2837
for p in csgo_profile_list:
29-
print(loop.run_until_complete(csgo_client.search_profile(p)))
38+
try:
39+
print(loop.run_until_complete(csgo_client.search_profile(p)))
40+
except AssertionError:
41+
pass
42+
43+
if __name__ == '__main__':
44+
unittest.main()

0 commit comments

Comments
 (0)