Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /randovania_randovania /test /lib /test_migration_lib.py
| from __future__ import annotations | |
| import pytest | |
| from randovania.lib import migration_lib | |
| def test_migrate_to_version_missing_migration() -> None: | |
| data = { | |
| "schema_version": 1, | |
| } | |
| with pytest.raises( | |
| migration_lib.UnsupportedVersion, | |
| match=( | |
| r"Requested a migration from something 1, but it's no longer supported. " | |
| r"You can try using an older Randovania version." | |
| ), | |
| ): | |
| migration_lib.apply_migrations(data, [None], version_name="something") | |
| def test_migrate_to_version_data_too_new() -> None: | |
| data = { | |
| "schema_version": 3, | |
| } | |
| with pytest.raises( | |
| migration_lib.UnsupportedVersion, | |
| match=( | |
| r"Found version 3, but only up to 2 is supported. This file was created using a newer Randovania version." | |
| ), | |
| ): | |
| migration_lib.apply_migrations(data, [None]) | |
Xet Storage Details
- Size:
- 902 Bytes
- Xet hash:
- 14c06f97bd461cb82b9a7493946a4577a684f0628dbb0a9fc04c91d8d81e4b73
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.