Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: add larger sav files #89

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.