Skip to content

Commit

Permalink
Added unit test with a summation report and a variable that is not pr…
Browse files Browse the repository at this point in the history
…esent in all sections to check that it doesnt raise exception
  • Loading branch information
jorblancoa committed Oct 29, 2024
1 parent 61b25b8 commit bea41be
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/integration-e2e/test_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,16 @@ def _create_reports_config(original_config_path: Path, tmp_path: Path) -> tuple[
"start_time": 0.0,
"end_time": 40.0
}
# Added to verify no exception is raised when point process is not present in a section
config["reports"]["summation_ProbGABAAB"] = {
"type": "summation",
"cells": "Mosaic",
"variable_name": "ProbGABAAB_EMS.i",
"sections": "all",
"dt": 0.1,
"start_time": 0.0,
"end_time": 40.0
}

# Write the modified configuration to a temporary file
temp_config_path = tmp_path / "reports_config.json"
Expand Down

0 comments on commit bea41be

Please sign in to comment.