Skip to content

Commit

Permalink
tests: add larger sav files (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheahjs committed Jan 30, 2024
1 parent cacbe83 commit ba5da4a
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ repos:
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
exclude: ".*\\.sav$"
- id: check-ast
- id: check-case-conflict
- id: check-json
Expand Down
3 changes: 3 additions & 0 deletions tests/test_cli_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class TestCliScripts(unittest.TestCase):
("unicode-saves/LocalData.sav"),
("unicode-saves/WorldOption.sav"),
("unicode-saves/00000000000000000000000000000001.sav"),
("larger-saves/Level.sav"),
("larger-saves/LocalData.sav"),
("larger-saves/00000000000000000000000000000001.sav"),
]
)
def test_sav_roundtrip(self, file_name):
Expand Down
6 changes: 6 additions & 0 deletions tests/test_gvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ def test_header(self):
"unicode-saves/00000000000000000000000000000001.sav",
"/Script/Pal.PalWorldPlayerSaveGame",
),
("larger-saves/Level.sav", "/Script/Pal.PalWorldSaveGame"),
("larger-saves/LocalData.sav", "/Script/Pal.PalLocalWorldSaveGame"),
(
"larger-saves/00000000000000000000000000000001.sav",
"/Script/Pal.PalWorldPlayerSaveGame",
),
]
)
def test_sav_roundtrip(self, file_name, expected_save_game_class_name):
Expand Down
Binary file not shown.
Binary file added tests/testdata/larger-saves/Level.sav
Binary file not shown.
Binary file added tests/testdata/larger-saves/LocalData.sav
Binary file not shown.

0 comments on commit ba5da4a

Please sign in to comment.