From bdf964531f921a3c4d5d842ef3fbccabf9df4bfc Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 22 Dec 2017 02:40:06 +0100 Subject: [PATCH] - Documented the test - Removed Python 3.4 support in Travis --- .travis.yml | 1 - tests/test_local.py | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 54a06b69d9..a0645740e9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,5 @@ language: python python: - - "3.4" - "3.5" - "3.6" diff --git a/tests/test_local.py b/tests/test_local.py index d4947c8010..2fed775501 100644 --- a/tests/test_local.py +++ b/tests/test_local.py @@ -1,10 +1,8 @@ from .context import platypush, config_file, TestTimeoutException -import os import sys import logging import unittest -import threading from threading import Thread @@ -14,6 +12,9 @@ from platypush.pusher import Pusher from platypush.utils import set_timeout, clear_timeout class TestLocal(unittest.TestCase): + """ Tests the full flow on a local backend by executing a command through + the shell.exec plugin and getting the output """ + timeout = 5 def setUp(self): @@ -29,8 +30,8 @@ class TestLocal(unittest.TestCase): def on_response(self): def _f(response): logging.info("Received response: {}".format(response)) + clear_timeout() self.assertEqual(response.output.strip(), 'ping') - # os._exit(0) return _f def on_timeout(self, msg):