From 35df6c240d74fecfc6c8a252221f32db2630e1ca Mon Sep 17 00:00:00 2001
From: Stefano Borini <sborini@enthought.com>
Date: Thu, 10 Aug 2017 14:29:31 +0100
Subject: [PATCH] Fixed incorrect call in reader

---
 force_bdss/io/workflow_reader.py        |  3 ++-
 force_bdss/tests/fixtures/test_csv.json | 10 ++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/force_bdss/io/workflow_reader.py b/force_bdss/io/workflow_reader.py
index f5dc86a..1283a86 100644
--- a/force_bdss/io/workflow_reader.py
+++ b/force_bdss/io/workflow_reader.py
@@ -89,7 +89,8 @@ class WorkflowReader(HasStrictTraits):
             wf.mco = self._extract_mco(wf_data)
             wf.data_sources[:] = self._extract_data_sources(wf_data)
             wf.kpi_calculators[:] = self._extract_kpi_calculators(wf_data)
-            wf.notification_listeners[:] = self._extract_listeners(wf_data)
+            wf.notification_listeners[:] = \
+                self._extract_notification_listeners(wf_data)
         except KeyError as e:
             logging.exception("Could not read file")
             raise InvalidFileException("Could not read file. "
diff --git a/force_bdss/tests/fixtures/test_csv.json b/force_bdss/tests/fixtures/test_csv.json
index c707957..d9d6e35 100644
--- a/force_bdss/tests/fixtures/test_csv.json
+++ b/force_bdss/tests/fixtures/test_csv.json
@@ -70,6 +70,16 @@
           ]
         }
       }
+    ],
+    "notification_listeners": [
+      {  
+        "id": "force.bdss.enthought.factory.ui_notification",
+        "model_data": {
+            "sync_url": "tcp://127.0.0.1:12346",
+            "pub_url": "tcp://127.0.0.1:12345",
+            "identifier": "vfdjlkadfkljfsd"
+        }
+      }
     ]
   }
 }
-- 
GitLab