Buckets:

download
raw
1.14 kB
from __future__ import annotations
from randovania.game.game_enum import RandovaniaGame
from randovania.games.cave_story.layout.cs_configuration import CSObjective
from randovania.games.cave_story.layout.cs_cosmetic_patches import CSCosmeticPatches, MusicRandoType, MyChar
from randovania.games.cave_story.layout.preset_describer import get_ingame_hash, get_ingame_hash_str
def test_cs_objective():
for obj in CSObjective:
try:
assert isinstance(obj.name, str)
assert isinstance(obj.script, str)
assert isinstance(obj.enters_hell, bool)
except ValueError:
pass
def test_cs_cosmetic_patches():
patches = CSCosmeticPatches.default()
assert patches.game() == RandovaniaGame.CAVE_STORY
assert {mychar for mychar in MyChar if mychar.description is not None} == {MyChar.CUSTOM, MyChar.RANDOM}
for music in MusicRandoType:
assert isinstance(music.description, str)
def test_cs_preset_describer():
hash_bytes = b"\x00\x00\x00\x00\x00"
assert get_ingame_hash(hash_bytes) == [1, 1, 1, 1, 1]
assert get_ingame_hash_str(hash_bytes) != ""

Xet Storage Details

Size:
1.14 kB
·
Xet hash:
bf0aa350dd9f74e9ba4686d62d293ddfd7479bd78295f4418c21a5f3d94eadab

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.