beremiz
Clone
Summary
Browse
Changes
Graph
clean sys.argv, because if test is running from pytest
2017-09-16, Andrey Skvortsov
ff0c18be4a8b
Parents
724722c03db4
Children
925ea35edc2c
clean sys.argv, because if test is running from pytest
sys.argv contains string "pytest --timeout 0 ./tests/tools"
Beremiz application parses it and throws exception.
1 files changed, 1 insertions(+), 0 deletions(-)
+1
-0
tests/tools/test_application.py
--- a/tests/tools/test_application.py Sat Sep 16 21:19:19 2017 +0300
+++ b/tests/tools/test_application.py Sat Sep 16 21:22:06 2017 +0300
@@ -148,6 +148,7 @@
def testStartUp(self):
"""Checks whether the app starts and finishes correctly"""
+ sys.argv = [""]
self.StartApp()
self.FinishApp()