]> WPIA git - motion.git/commitdiff
upd: fixes unit tests
authorINOPIAE <m.maengel@inopiae.de>
Wed, 9 Dec 2020 20:52:53 +0000 (21:52 +0100)
committerINOPIAE <m.maengel@inopiae.de>
Wed, 9 Dec 2020 20:52:53 +0000 (21:52 +0100)
jenkins_job.py
motion.py

index 56dc831df85b922c7c54f0dde76cea8f22de2fc3..165d27643e09c5fe342f6ac1c95d8ba98dce70db 100644 (file)
@@ -7,7 +7,7 @@ def runner(output='python_tests_xml'):
     )
 
 def find_tests():
-    return unittest.TestLoader().discover('tests', 'test_motion.py')
+    return unittest.TestLoader().discover('tests', 'test_*.py')
 
 if __name__ == "__main__":
     runner().run(find_tests())
index 5291469f8eaa35a5e8fe310bb6743f1f5d6ce1f2..82efd0021cef93a1ed51c7abf958059657e24e12 100644 (file)
--- a/motion.py
+++ b/motion.py
@@ -39,6 +39,7 @@ class default_settings(object):
     COPYRIGHTLINK="https://wpia.club"
     IMPRINTLINK="https://documents.wpia.club/imprint.html"
     DATAPROTECTIONLINK="https://documents.wpia.club/data_privacy_policy_html_pages_en.html"
+    MAX_PROXY=2
 
 
 # Load config