mirror of
https://github.com/nihilvux/bancho.py.git
synced 2025-09-16 18:48:38 -07:00
Add files via upload
This commit is contained in:
0
testing/__init__.py
Normal file
0
testing/__init__.py
Normal file
0
testing/sample_data/__init__.py
Normal file
0
testing/sample_data/__init__.py
Normal file
157
testing/sample_data/sample_beatmap_data.py
Normal file
157
testing/sample_data/sample_beatmap_data.py
Normal file
@@ -0,0 +1,157 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
|
||||
def vivid_osu_file_sample_response() -> bytes:
|
||||
with open("testing/sample_data/vivid_osu_file.osu", "rb") as f:
|
||||
return f.read()
|
||||
|
||||
|
||||
def vivid_getbeatmaps_sample_response() -> list[dict[str, Any]]:
|
||||
return [
|
||||
{
|
||||
"beatmapset_id": 141,
|
||||
"beatmap_id": 313,
|
||||
"approved": 1,
|
||||
"total_length": 188,
|
||||
"hit_length": 159,
|
||||
"version": "Easy",
|
||||
"file_md5": "72bdc73c3f17013c5d0ba8443c9045b2",
|
||||
"diff_size": 3,
|
||||
"diff_overall": 3,
|
||||
"diff_approach": 3,
|
||||
"diff_drain": 3,
|
||||
"mode": 0,
|
||||
"approved_date": "2007-11-01T06:09:15Z",
|
||||
"last_update": "2014-05-18T08:16:40Z",
|
||||
"artist": "FAIRY FORE",
|
||||
"artist_unicode": "FAIRY FORE",
|
||||
"title": "Vivid",
|
||||
"title_unicode": "Vivid",
|
||||
"creator": "Hitoshirenu Shourai",
|
||||
"creator_id": 602,
|
||||
"bpm": 168,
|
||||
"source": "",
|
||||
"tags": "",
|
||||
"genre_id": 0,
|
||||
"language_id": 0,
|
||||
"favourite_count": 336,
|
||||
"storyboard": 0,
|
||||
"video": 0,
|
||||
"download_unavailable": 0,
|
||||
"playcount": 53584,
|
||||
"passcount": 15160,
|
||||
"packs": ["S5", "T79"],
|
||||
"max_combo": 294,
|
||||
"difficultyrating": 1.54,
|
||||
},
|
||||
{
|
||||
"beatmapset_id": 141,
|
||||
"beatmap_id": 314,
|
||||
"approved": 1,
|
||||
"total_length": 185,
|
||||
"hit_length": 182,
|
||||
"version": "Hard",
|
||||
"file_md5": "dd1749b4422a1dab9a2945a6bfccc5ef",
|
||||
"diff_size": 5,
|
||||
"diff_overall": 5,
|
||||
"diff_approach": 5,
|
||||
"diff_drain": 5,
|
||||
"mode": 0,
|
||||
"approved_date": "2007-11-01T06:09:15Z",
|
||||
"last_update": "2014-05-18T16:45:16Z",
|
||||
"artist": "FAIRY FORE",
|
||||
"artist_unicode": "FAIRY FORE",
|
||||
"title": "Vivid",
|
||||
"title_unicode": "Vivid",
|
||||
"creator": "Hitoshirenu Shourai",
|
||||
"creator_id": 602,
|
||||
"bpm": 168,
|
||||
"source": "",
|
||||
"tags": "",
|
||||
"genre_id": 0,
|
||||
"language_id": 0,
|
||||
"favourite_count": 336,
|
||||
"storyboard": 0,
|
||||
"video": 0,
|
||||
"download_unavailable": 0,
|
||||
"playcount": 79331,
|
||||
"passcount": 8523,
|
||||
"packs": ["S5", "T79"],
|
||||
"max_combo": 723,
|
||||
"difficultyrating": 3.75,
|
||||
},
|
||||
{
|
||||
"beatmapset_id": 141,
|
||||
"beatmap_id": 315,
|
||||
"approved": 1,
|
||||
"total_length": 14,
|
||||
"hit_length": 14,
|
||||
"version": "Insane",
|
||||
"file_md5": "1cf5b2c2edfafd055536d2cefcb89c0e",
|
||||
"diff_size": 6,
|
||||
"diff_overall": 7,
|
||||
"diff_approach": 7,
|
||||
"diff_drain": 2,
|
||||
"mode": 0,
|
||||
"approved_date": "2007-11-01T06:09:15Z",
|
||||
"last_update": "2014-05-18T15:41:48Z",
|
||||
"artist": "FAIRY FORE",
|
||||
"artist_unicode": "FAIRY FORE",
|
||||
"title": "Vivid",
|
||||
"title_unicode": "Vivid",
|
||||
"creator": "Hitoshirenu Shourai",
|
||||
"creator_id": 602,
|
||||
"bpm": 168,
|
||||
"source": "",
|
||||
"tags": "",
|
||||
"genre_id": 0,
|
||||
"language_id": 0,
|
||||
"favourite_count": 336,
|
||||
"storyboard": 0,
|
||||
"video": 0,
|
||||
"download_unavailable": 0,
|
||||
"playcount": 1632137,
|
||||
"passcount": 987366,
|
||||
"packs": ["S5", "T79"],
|
||||
"max_combo": 114,
|
||||
"difficultyrating": 5.23,
|
||||
},
|
||||
{
|
||||
"beatmapset_id": 141,
|
||||
"beatmap_id": 316,
|
||||
"approved": 1,
|
||||
"total_length": 188,
|
||||
"hit_length": 159,
|
||||
"version": "Normal",
|
||||
"file_md5": "0236aeb3bb5f110d7eacf4045092efac",
|
||||
"diff_size": 5,
|
||||
"diff_overall": 5,
|
||||
"diff_approach": 5,
|
||||
"diff_drain": 5,
|
||||
"mode": 0,
|
||||
"approved_date": "2007-11-01T06:09:15Z",
|
||||
"last_update": "2014-05-18T16:26:49Z",
|
||||
"artist": "FAIRY FORE",
|
||||
"artist_unicode": "FAIRY FORE",
|
||||
"title": "Vivid",
|
||||
"title_unicode": "Vivid",
|
||||
"creator": "Hitoshirenu Shourai",
|
||||
"creator_id": 602,
|
||||
"bpm": 168,
|
||||
"source": "",
|
||||
"tags": "",
|
||||
"genre_id": 0,
|
||||
"language_id": 0,
|
||||
"favourite_count": 336,
|
||||
"storyboard": 0,
|
||||
"video": 0,
|
||||
"download_unavailable": 0,
|
||||
"playcount": 49671,
|
||||
"passcount": 13422,
|
||||
"packs": ["S5", "T79"],
|
||||
"max_combo": 478,
|
||||
"difficultyrating": 2.28,
|
||||
},
|
||||
]
|
139
testing/sample_data/vivid_osu_file.osu
Normal file
139
testing/sample_data/vivid_osu_file.osu
Normal file
@@ -0,0 +1,139 @@
|
||||
osu file format v3
|
||||
|
||||
[General]
|
||||
AudioFilename: 01_-_vivid.mp3
|
||||
AudioLeadIn: 2000
|
||||
AudioHash: f9e55f878282eba37a8da909fcc40994
|
||||
PreviewTime: -1
|
||||
SampleSet: Normal
|
||||
EditorBookmarks: 3317,5460,8942,14389,16085,17514,19300,22692,25907,28942,31800,34300,37335
|
||||
|
||||
[Metadata]
|
||||
Title:Vivid
|
||||
Artist:FAIRY FORE
|
||||
Creator:Hitoshirenu Shourai
|
||||
Version:Insane
|
||||
|
||||
[Difficulty]
|
||||
HPDrainRate:2
|
||||
CircleSize:6
|
||||
OverallDifficulty:7
|
||||
SliderMultiplier: 1
|
||||
SliderTickRate: 2
|
||||
|
||||
[Events]
|
||||
0,0,"Chocobos.jpg"
|
||||
3,0,0,0,255
|
||||
|
||||
[TimingPoints]
|
||||
520,357.142857142857
|
||||
|
||||
[HitObjects]
|
||||
256,192,520,1,0,
|
||||
224,192,609,1,0,
|
||||
192,192,698,1,0,
|
||||
208,160,787,1,0,
|
||||
224,144,877,5,0,
|
||||
256,144,966,1,0,
|
||||
288,144,1055,1,0,
|
||||
320,160,1144,1,0,
|
||||
320,192,1234,5,0,
|
||||
304,220,1323,1,0,
|
||||
288,240,1412,1,0,
|
||||
256,240,1502,1,0,
|
||||
224,240,1591,5,0,
|
||||
192,240,1680,1,0,
|
||||
160,240,1769,1,0,
|
||||
128,224,1859,1,0,
|
||||
128,192,1948,5,0,
|
||||
144,168,2037,1,0,
|
||||
160,144,2127,1,0,
|
||||
177,120,2216,1,0,
|
||||
192,96,2305,5,0,
|
||||
224,96,2394,1,0,
|
||||
256,96,2484,1,0,
|
||||
288,96,2573,1,0,
|
||||
320,96,2662,5,0,
|
||||
339,122,2752,1,0,
|
||||
352,144,2841,1,0,
|
||||
373,173,2930,1,0,
|
||||
384,192,3019,5,0,
|
||||
373,220,3109,1,0,
|
||||
360,248,3198,1,0,
|
||||
337,272,3287,1,0,
|
||||
320,288,3377,5,0,
|
||||
288,288,3466,1,0,
|
||||
256,288,3555,1,0,
|
||||
224,288,3644,1,0,
|
||||
192,288,3734,5,0,
|
||||
136,288,3912,1,0,
|
||||
96,256,4091,5,0,
|
||||
72,216,4180,1,0,
|
||||
72,176,4269,1,0,
|
||||
80,144,4359,1,0,
|
||||
96,120,4448,5,0,
|
||||
128,88,4627,1,0,
|
||||
160,48,4805,5,0,
|
||||
192,48,4895,1,0,
|
||||
224,48,4984,1,0,
|
||||
256,48,5073,1,0,
|
||||
288,48,5162,5,0,
|
||||
352,48,5341,1,0,
|
||||
416,128,5698,6,0,B|416:128|416:192,1,49
|
||||
416,272,6234,5,0,
|
||||
416,312,6323,1,0,
|
||||
416,352,6412,1,0,
|
||||
376,352,6502,1,0,
|
||||
336,352,6591,5,0,
|
||||
336,272,6770,1,0,
|
||||
256,272,6948,5,0,
|
||||
256,312,7037,1,0,
|
||||
256,352,7127,1,0,
|
||||
216,352,7216,1,0,
|
||||
176,352,7305,5,0,
|
||||
176,272,7484,1,0,
|
||||
176,192,7662,5,0,
|
||||
136,192,7752,1,0,
|
||||
96,192,7841,1,0,
|
||||
64,160,7930,1,0,
|
||||
32,128,8020,5,0,
|
||||
32,48,8198,1,0,
|
||||
112,112,8555,6,0,B|112:112|112:48,1,49
|
||||
224,32,9091,5,0,
|
||||
224,64,9180,1,0,
|
||||
224,96,9270,1,0,
|
||||
256,96,9359,1,0,
|
||||
288,96,9448,5,0,
|
||||
288,160,9627,1,0,
|
||||
224,160,9805,5,0,
|
||||
224,192,9895,1,0,
|
||||
224,224,9984,1,0,
|
||||
256,224,10073,1,0,
|
||||
288,224,10162,5,0,
|
||||
288,288,10341,1,0,
|
||||
224,288,10520,5,0,
|
||||
224,320,10609,1,0,
|
||||
224,352,10698,1,0,
|
||||
256,352,10787,1,0,
|
||||
288,352,10877,5,0,
|
||||
352,352,11055,1,0,
|
||||
352,288,11234,5,0,
|
||||
352,256,11323,1,0,
|
||||
352,224,11412,1,0,
|
||||
384,224,11502,1,0,
|
||||
416,224,11591,5,0,
|
||||
416,288,11769,1,0,
|
||||
480,256,11948,5,0,
|
||||
480,224,12037,1,0,
|
||||
480,192,12127,1,0,
|
||||
480,160,12216,1,0,
|
||||
416,160,12305,5,0,
|
||||
352,160,12484,1,0,
|
||||
352,96,12662,5,0,
|
||||
384,96,12752,1,0,
|
||||
416,96,12841,1,0,
|
||||
448,96,12930,1,0,
|
||||
416,32,13019,5,0,
|
||||
352,32,13198,1,0,
|
||||
288,32,13377,6,0,B|288:32|176:32,1,98
|
||||
192,96,13912,2,0,B|192:96|304:96,1,98
|
Reference in New Issue
Block a user