Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xjules committed Dec 19, 2024
1 parent 1f368b8 commit 6c7240e
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions tests/ert/unit_tests/config/test_analysis_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ def test_analysis_config_from_file_is_same_as_from_dict(monkeypatch, tmp_path):
("STD_ENKF", "ENKF_TRUNCATION", 0.8),
],
ConfigKeys.DESIGN_MATRIX: [
"my_design_matrix.xlsx",
"DESIGN_SHEET:my_sheet",
"DEFAULT_SHEET:my_default_sheet",
[
"my_design_matrix.xlsx",
"DESIGN_SHEET:my_sheet",
"DEFAULT_SHEET:my_default_sheet",
]
],
}
)
Expand Down Expand Up @@ -110,9 +112,11 @@ def test_invalid_design_matrix_format_raises_validation_error():
{
ConfigKeys.NUM_REALIZATIONS: 1,
ConfigKeys.DESIGN_MATRIX: [
"my_matrix.txt",
"DESIGN_SHEET:sheet1",
"DEFAULT_SHEET:sheet2",
[
"my_matrix.txt",
"DESIGN_SHEET:sheet1",
"DEFAULT_SHEET:sheet2",
],
],
}
)
Expand All @@ -123,9 +127,11 @@ def test_design_matrix_without_design_sheet_raises_validation_error():
AnalysisConfig.from_dict(
{
ConfigKeys.DESIGN_MATRIX: [
"my_matrix.xlsx",
"DESIGN_:design",
"DEFAULT_SHEET:default",
[
"my_matrix.xlsx",
"DESIGN_:design",
"DEFAULT_SHEET:default",
]
],
}
)
Expand All @@ -136,9 +142,11 @@ def test_design_matrix_without_default_sheet_raises_validation_error():
AnalysisConfig.from_dict(
{
ConfigKeys.DESIGN_MATRIX: [
"my_matrix.xlsx",
"DESIGN_SHEET:design",
"DEFAULT_:default",
[
"my_matrix.xlsx",
"DESIGN_SHEET:design",
"DEFAULT_:default",
]
],
}
)
Expand Down

0 comments on commit 6c7240e

Please sign in to comment.