-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from ESSS/fb-PWPA-1932-convert-score-formations
Convert data for formations for alfacase
- Loading branch information
Showing
7 changed files
with
1,113 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
16 changes: 16 additions & 0 deletions
16
src/alfasim_score/converter/alfacase/_tests/test_convert_alfacase.py
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,16 @@ | ||
from alfasim_sdk import convert_description_to_alfacase | ||
from pytest_regressions.file_regression import FileRegressionFixture | ||
|
||
from alfasim_score.converter.alfacase.convert_alfacase import ScoreAlfacaseConverter | ||
from alfasim_score.converter.alfacase.score_input_reader import ScoreInputReader | ||
|
||
|
||
def test_create_alfacase( | ||
file_regression: FileRegressionFixture, | ||
score_input_example: ScoreInputReader, | ||
) -> None: | ||
builder = ScoreAlfacaseConverter(score_input_example) | ||
case_description = builder.build_case_description() | ||
file_regression.check( | ||
convert_description_to_alfacase(case_description), encoding="utf-8", extension=".alfacase" | ||
) |
Oops, something went wrong.