From bea41befaa6abb41a45908c9b306f3be5e7f6f35 Mon Sep 17 00:00:00 2001 From: Jorge Blanco Alonso Date: Tue, 29 Oct 2024 17:57:40 +0100 Subject: [PATCH] Added unit test with a summation report and a variable that is not present in all sections to check that it doesnt raise exception --- tests/integration-e2e/test_reports.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/integration-e2e/test_reports.py b/tests/integration-e2e/test_reports.py index 359864d5..27f45db1 100644 --- a/tests/integration-e2e/test_reports.py +++ b/tests/integration-e2e/test_reports.py @@ -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"