Parcourir la source

add a fake port to test

kmpm il y a 8 ans
Parent
commit
8e33cd7e65
1 fichiers modifiés avec 7 ajouts et 1 suppressions
  1. 7 1
      tests/uploader.py

+ 7 - 1
tests/uploader.py

@@ -1,9 +1,15 @@
 import unittest
 from lib import Uploader, __version__
 
+#on which port should the tests be performed
+PORT = 'loop://'
+
+#which speed should the tests use
+BAUD = 115200
+
 class UploaderTestCase(unittest.TestCase):
 
 
 
     def test_initialize(self):
-        uploader = Uploader()
+        uploader = Uploader(PORT, BAUD)