Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Jan 18, 2024
1 parent 27e6c66 commit 4d6b645
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 103 deletions.
2 changes: 1 addition & 1 deletion opengsq/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.3.0'
__version__ = '2.3.1'
2 changes: 1 addition & 1 deletion tests/protocols/test_killingfloor.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# handler.enable_save = True

# Killing Floor
test = KillingFloor(host='104.234.65.235', port=7708)
test = KillingFloor(host='185.80.128.168', port=7708)

@pytest.mark.asyncio
async def test_get_details():
Expand Down
16 changes: 8 additions & 8 deletions tests/results/test_killingfloor/test_get_details.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"ServerIP": "",
"GamePort": 7707,
"QueryPort": 0,
"ServerName": "|uDeep|/T\\||Noi| #2 <<uINFERNA> W",
"MapName": "KF-STALKER-DUTY-BASE(REMAKE)",
"GameType": "KFGameType",
"NumPlayers": 17,
"MaxPlayers": 32,
"WaveCurrent": 2,
"WaveTotal": 7,
"ServerName": "WS-GAMING.EU | NORMAL | 60LVL [#1]",
"MapName": "KF-WS-NoMercy",
"GameType": "UZGameType",
"NumPlayers": 10,
"MaxPlayers": 25,
"WaveCurrent": 1,
"WaveTotal": 10,
"Ping": 0,
"Flags": 512,
"Flags": 64,
"Skill": "0"
}
101 changes: 26 additions & 75 deletions tests/results/test_killingfloor/test_get_players.json
Original file line number Diff line number Diff line change
@@ -1,100 +1,51 @@
[
{
"Id": 769,
"Name": "[CHL] asein",
"Ping": 56,
"Score": 1500,
"Id": 7,
"Name": "Falcon1i",
"Ping": 64,
"Score": 500,
"StatsId": 536870912
},
{
"Id": 554,
"Name": "[MEX] Tologuin",
"Ping": 148,
"Score": 1515,
"Id": 6,
"Name": "kaziukaass",
"Ping": 32,
"Score": 500,
"StatsId": 536870912
},
{
"Id": 374,
"Name": "[CHL] fafe_asta",
"Ping": 60,
"Score": 984,
"StatsId": 536870912
},
{
"Id": 311,
"Name": "[ARG] Rekiam",
"Ping": 76,
"Score": 1129,
"StatsId": 536870912
},
{
"Id": 277,
"Name": "[ARG] KFL/UFOKILLER",
"Ping": 28,
"Score": 1716,
"StatsId": 536870912
},
{
"Id": 271,
"Name": "[KOR] Bohemian",
"Ping": 252,
"Score": 493,
"StatsId": 536870912
},
{
"Id": 199,
"Name": "[BRA] Finish",
"Id": 5,
"Name": "JOE_BIDEN",
"Ping": 40,
"Score": 0,
"StatsId": 0
},
{
"Id": 83,
"Name": "[CHL] LordChalox",
"Ping": 60,
"Score": 2282,
"StatsId": 536870912
},
{
"Id": 29,
"Name": "[CHL] Kriss_Nemesis",
"Ping": 52,
"Score": 226,
"Score": 500,
"StatsId": 536870912
},
{
"Id": 21,
"Name": "[ESP] HomerO",
"Ping": 176,
"Score": 175,
"Id": 4,
"Name": "Wev",
"Ping": 88,
"Score": 500,
"StatsId": 536870912
},
{
"Id": 19,
"Name": "[CHL] Marcelo_Kris",
"Ping": 56,
"Score": 229,
"Id": 3,
"Name": "Angry_Dany",
"Ping": 24,
"Score": 500,
"StatsId": 536870912
},
{
"Id": 18,
"Name": "[CHL] ZuraRxx",
"Ping": 92,
"Score": 2046,
"Id": 2,
"Name": "Kornis",
"Ping": 36,
"Score": 500,
"StatsId": 536870912
},
{
"Id": 17,
"Name": "[ARG] francomaldonado",
"Id": 1,
"Name": "THE_ANCIENT/_\\Predat",
"Ping": 48,
"Score": 59,
"StatsId": 536870912
},
{
"Id": 15,
"Name": "[SLV] memtrix",
"Ping": 128,
"Score": 569,
"Score": 500,
"StatsId": 536870912
}
]
33 changes: 15 additions & 18 deletions tests/results/test_killingfloor/test_get_rules.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
{
"Mutators": [
"ZNBase",
"ZNBase",
"ZNBase",
"ZNBase",
"ZNBase",
"ZNBase",
"ZNBase",
"ZNBase",
"ZNBase",
"ZNBase"
"KillingFloorMut",
"SpecimenHPConfigMut",
"CleanAppIDMut",
"MutSlotMachine",
"KFShareCashMut",
"ServerPerksMut"
],
"ServerMode": "dedicated",
"AdminName": "AdminEmail",
"AdminName": "",
"AdminEmail": "[email protected]",
"ServerVersion": "1065",
"IsVacSecured": "true",
"MaxSpectators": "6",
"MaxSpectators": "20",
"MapVoting": "true",
"KickVoting": "true",
"SP: Version": "750",
"SP: Min perk level": "6",
"SP: Max perk level": "99",
"SP: Num trader weapons": "140",
"SP: Perk 1": "Support Specialist",
"SP: Perk 2": "Berserker"
"Slot Machines": "Ver 200",
"Veterancy Handler": "Ver 700",
"Veterancy saving": "Enabled",
"Min perk level": "0",
"Max perk level": "60",
"Num trader weapons": "123"
}

0 comments on commit 4d6b645

Please sign in to comment.