Skip to content
Snippets Groups Projects
Commit 12641992 authored by Alexandra Murariu's avatar Alexandra Murariu
Browse files

Merge branch 'SIGMON-751_13kA_analysis_notebook' into 'dev'

SIGMON-751_13kA_analysis_notebook

Closes SIGMON-751

See merge request !380
parents f046f44d ec4c6ef4
No related branches found
No related tags found
2 merge requests!381Merge dev into master,!380SIGMON-751_13kA_analysis_notebook
Pipeline #7865757 passed with stage
in 11 minutes and 55 seconds
......@@ -186,3 +186,8 @@ class AnalysisManager:
# from the context and depending on the data returns a True or False
return all(a.get_analysis_output() for a in self._registered_analysis.values())
def get_registered_analyses_identifiers(self) -> list[str]:
"""Returns the list of identifiers of the registered analysis objects."""
return list(self._registered_analysis.keys())
......@@ -93,6 +93,7 @@ class AnalysisManagerTest(unittest.TestCase):
filtered_logs["id1"], "Starting analysis\nUser input received\nError encountered\nAnalysis complete"
)
self.assertEqual(filtered_logs["id2"], "Recalculating")
self.assertEqual(self.analysis_manager.get_registered_analyses_identifiers(), ["id1", "id2"])
def test_get_filtered_logs_multiple_filters_result_only_one_analysis(self):
# act
......@@ -100,6 +101,7 @@ class AnalysisManagerTest(unittest.TestCase):
# assert
self.assertEqual(filtered_logs["id2"], "Starting analysis")
self.assertEqual(filtered_logs["id1"], "")
self.assertEqual(self.analysis_manager.get_registered_analyses_identifiers(), ["id1", "id2"])
def test_get_filtered_logs_multiple_filters_no_results(self):
# act
......@@ -107,3 +109,4 @@ class AnalysisManagerTest(unittest.TestCase):
# assert
self.assertEqual(filtered_logs["id1"], "")
self.assertEqual(filtered_logs["id2"], "")
self.assertEqual(self.analysis_manager.get_registered_analyses_identifiers(), ["id1", "id2"])
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