-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tests): add tests for 8.7 upgrade
- Loading branch information
1 parent
b2bbba9
commit 6baf69e
Showing
6 changed files
with
58 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from antarest.study.storage.study_upgrader import upgrade_870 | ||
from tests.storage.business.test_study_version_upgrader import are_same_dir | ||
from tests.storage.study_upgrader.conftest import StudyAssets | ||
|
||
|
||
def test_nominal_case(study_assets: StudyAssets): | ||
""" | ||
Check that 'st-storage' folder is created and filled. | ||
""" | ||
|
||
# upgrade the study | ||
upgrade_870(study_assets.study_dir) | ||
|
||
# compare input folders (bindings + thermals) | ||
actual_input_path = study_assets.study_dir.joinpath("input") | ||
expected_input_path = study_assets.expected_dir.joinpath("input") | ||
assert are_same_dir(actual_input_path, expected_input_path) |
Binary file added
BIN
+124 KB
tests/storage/study_upgrader/upgrade_870/nominal_case/little_study_860.expected.zip
Binary file not shown.
Binary file added
BIN
+123 KB
tests/storage/study_upgrader/upgrade_870/nominal_case/little_study_860.zip
Binary file not shown.