Skip to content

Commit 1530a54

Browse files
Update test results
1 parent d9674ae commit 1530a54

35 files changed

+2148
-3178
lines changed

tests/protocols/result_handler.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ def __init__(self, protocol_name):
1616

1717
async def save_result(self, function_name, result, is_json=True):
1818
"Save and print the result"
19-
19+
2020
if self.enable_save:
2121
if is_json:
2222
result = json.dumps(result, indent=4, ensure_ascii=False)
23-
23+
2424
with open(os.path.join(self.__protocol_path, f'{function_name}.{(is_json and "json" or "txt")}'), 'w', encoding='utf-8') as f:
2525
print(result, file=f)
26-
26+
2727
await asyncio.sleep(self.delay_per_test)

tests/protocols/test_minecraft.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# handler.enable_save = True
1010

1111
# Minecraft
12-
test = Minecraft(host='2b2tjb.jp', port=19132)
12+
test = Minecraft(host='mc.paladium-pvp.fr', port=25565)
1313

1414
@pytest.mark.asyncio
1515
async def test_get_status():

tests/results/test_ase/test_get_status.json

+23-111
Original file line numberDiff line numberDiff line change
@@ -1,189 +1,101 @@
11
{
22
"gamename": "mta",
33
"gameport": "22003",
4-
"hostname": "#1 TITAN RPG | [RUS|UA|KZ] [DRIFT|бпан|radm,bpan,cc]",
4+
"hostname": " TITAN RPG | [RUS|UA|KZ] [DRIFT|бпан|radm,bpan,cc]",
55
"gametype": "MTA:SA",
66
"map": "None",
77
"version": "1.5",
88
"password": "0",
9-
"numplayers": "22",
10-
"maxplayers": "111",
9+
"numplayers": "11",
10+
"maxplayers": "108",
1111
"rules": {},
1212
"players": [
1313
{
1414
"name": "XaocOTMAROZOK",
1515
"team": "",
1616
"skin": "",
1717
"score": "",
18-
"ping": "79",
18+
"ping": "81",
1919
"time": ""
2020
},
2121
{
22-
"name": "AcidicBurglar95",
22+
"name": "Dedulya",
2323
"team": "",
2424
"skin": "",
2525
"score": "",
26-
"ping": "60",
26+
"ping": "78",
2727
"time": ""
2828
},
2929
{
30-
"name": "segaXS",
31-
"team": "",
32-
"skin": "",
33-
"score": "",
34-
"ping": "92",
35-
"time": ""
36-
},
37-
{
38-
"name": "_Dima_",
39-
"team": "",
40-
"skin": "",
41-
"score": "",
42-
"ping": "41",
43-
"time": ""
44-
},
45-
{
46-
"name": "~/SMYRFIK\\~",
47-
"team": "",
48-
"skin": "",
49-
"score": "",
50-
"ping": "85",
51-
"time": ""
52-
},
53-
{
54-
"name": "Adam_CryptoMatrix",
55-
"team": "",
56-
"skin": "",
57-
"score": "",
58-
"ping": "111",
59-
"time": ""
60-
},
61-
{
62-
"name": "Chaser",
63-
"team": "",
64-
"skin": "",
65-
"score": "",
66-
"ping": "44",
67-
"time": ""
68-
},
69-
{
70-
"name": "TawdryFrigate22",
71-
"team": "",
72-
"skin": "",
73-
"score": "",
74-
"ping": "117",
75-
"time": ""
76-
},
77-
{
78-
"name": "_cbr_Virus_",
79-
"team": "",
80-
"skin": "",
81-
"score": "",
82-
"ping": "73",
83-
"time": ""
84-
},
85-
{
86-
"name": "Pokemonchik",
87-
"team": "",
88-
"skin": "",
89-
"score": "",
90-
"ping": "82",
91-
"time": ""
92-
},
93-
{
94-
"name": "<SUPREME>",
95-
"team": "",
96-
"skin": "",
97-
"score": "",
98-
"ping": "85",
99-
"time": ""
100-
},
101-
{
102-
"name": "_MARSHMELLO_",
103-
"team": "",
104-
"skin": "",
105-
"score": "",
106-
"ping": "129",
107-
"time": ""
108-
},
109-
{
110-
"name": "Collector^",
30+
"name": "Lavren",
11131
"team": "",
11232
"skin": "",
11333
"score": "",
11434
"ping": "88",
11535
"time": ""
11636
},
11737
{
118-
"name": "Wh1teness",
119-
"team": "",
120-
"skin": "",
121-
"score": "",
122-
"ping": "104",
123-
"time": ""
124-
},
125-
{
126-
"name": "frikadelka",
38+
"name": "DanyBashca",
12739
"team": "",
12840
"skin": "",
12941
"score": "",
130-
"ping": "94",
42+
"ping": "122",
13143
"time": ""
13244
},
13345
{
134-
"name": "~Relaksek<3",
46+
"name": "Jafar",
13547
"team": "",
13648
"skin": "",
13749
"score": "",
138-
"ping": "79",
50+
"ping": "72",
13951
"time": ""
14052
},
14153
{
142-
"name": "ARTIST.",
54+
"name": "<MTASHNIK>",
14355
"team": "",
14456
"skin": "",
14557
"score": "",
146-
"ping": "76",
58+
"ping": "84",
14759
"time": ""
14860
},
14961
{
150-
"name": "[BEBRA]GENSYXA<3",
62+
"name": "Edmin86",
15163
"team": "",
15264
"skin": "",
15365
"score": "",
154-
"ping": "76",
66+
"ping": "141",
15567
"time": ""
15668
},
15769
{
158-
"name": "-///[Fillip_Moris]\\\\\\-",
70+
"name": "LiZZka",
15971
"team": "",
16072
"skin": "",
16173
"score": "",
162-
"ping": "82",
74+
"ping": "90",
16375
"time": ""
16476
},
16577
{
166-
"name": "kaspi.kz",
78+
"name": "DragonRiki",
16779
"team": "",
16880
"skin": "",
16981
"score": "",
170-
"ping": "107",
82+
"ping": "91",
17183
"time": ""
17284
},
17385
{
174-
"name": "Nossense",
86+
"name": "Atema",
17587
"team": "",
17688
"skin": "",
17789
"score": "",
178-
"ping": "148",
90+
"ping": "72",
17991
"time": ""
18092
},
18193
{
182-
"name": "}|{ena_kaspi.kz",
94+
"name": "TTEHb",
18395
"team": "",
18496
"skin": "",
18597
"score": "",
186-
"ping": "139",
98+
"ping": "72",
18799
"time": ""
188100
}
189101
]
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
{
22
"hostname": "# -bZ4- # 90HZ LOCKER NO RULES BANZORE.COM",
3-
"numplayers": 49,
3+
"numplayers": 14,
44
"maxplayers": 64,
55
"gametype": "ConquestLarge0",
66
"map": "MP_Prison",
77
"roundsplayed": 0,
88
"roundstotal": 1,
99
"teams": [
10-
1094.0,
11-
839.823059
10+
1174.543,
11+
980.219666
1212
],
1313
"targetscore": 0,
1414
"status": "",
1515
"ranked": true,
1616
"punkbuster": true,
1717
"password": false,
18-
"uptime": 77402,
19-
"roundtime": 434,
18+
"uptime": 647,
19+
"roundtime": 502,
2020
"ip_port": "74.91.124.140:25200",
2121
"punkbuster_version": "v1.905 | A1390 C2.351",
2222
"join_queue": true,
2323
"region": "NAm",
2424
"pingsite": "lax",
2525
"country": "US",
26-
"blaze_player_count": 61,
26+
"blaze_player_count": 60,
2727
"blaze_game_state": "IN_GAME"
2828
}

0 commit comments

Comments
 (0)