From 531be19a667c51f2695730e32a64aaef35bc98b2 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 24 Feb 2021 00:35:41 +0100 Subject: [PATCH] .context needs to be imported in test_event_parse to make sure that the configuration is properly initialized --- tests/test_event_parse.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_event_parse.py b/tests/test_event_parse.py index b645ea995..7806c244f 100644 --- a/tests/test_event_parse.py +++ b/tests/test_event_parse.py @@ -1,5 +1,7 @@ +import logging import unittest +from .context import config_file from platypush.event.hook import EventCondition from platypush.message.event.ping import PingEvent @@ -12,6 +14,7 @@ class TestEventParse(unittest.TestCase): }) def test_event_parse(self): + logging.info('Starting test on configuration file: {}'.format(config_file)) message = "GARBAGE GARBAGE this is the answer: 42" event = PingEvent(message=message) result = event.matches_condition(self.condition)