Skip to content
Snippets Groups Projects
Commit bc40723e authored by kohlhaasrebecca's avatar kohlhaasrebecca
Browse files

Remove unneeded tests

parent e6d99795
No related branches found
No related tags found
1 merge request!37Fix/post processing
Pipeline #52558 failed
......@@ -347,30 +347,6 @@ def test_plot_seq_design_diagnostics(basic_engine_sequential):
assert os.path.exists(f"./{post.out_dir}/seq_design_diagnostics/seq_RMSEMean.{post.out_format}")
assert os.path.exists(f"./{post.out_dir}/seq_design_diagnostics/seq_RMSEStd.{post.out_format}")
def test_plot_seq_design_diagnostics_with_custom_values(basic_engine_trained):
"""
Test the plot_seq_design_diagnostics method with custom values
"""
engine = basic_engine_trained
engine.ExpDesign.X = np.array([[0.1], [0.3], [0.5], [0.7], [0.9]])
engine.ExpDesign.Y = np.array([[2], [4], [6], [8], [10]])
post = PostProcessing(engine)
post.plot_seq_design_diagnostics()
# Check if the plot was created and saved
assert os.path.exists(f"./{post.out_dir}/seq_design_diagnostics/Seq_Design_Diagnostics.{post.out_format}")
def test_plot_seq_design_diagnostics_with_empty_values(basic_engine_trained):
"""
Test the plot_seq_design_diagnostics method with empty values
"""
engine = basic_engine_trained
engine.ExpDesign.X = np.array([])
engine.ExpDesign.Y = np.array([])
post = PostProcessing(engine)
with pytest.raises(ValueError) as excinfo:
post.plot_seq_design_diagnostics()
assert "ExpDesign.X and ExpDesign.Y cannot be empty" in str(excinfo.value)
#%% sobol_indices
def test_sobol_indices_pce(pce_engine) -> None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment