Ver código fonte

add a fake port to test

kmpm 8 anos atrás
pai
commit
8e33cd7e65
1 arquivos alterados com 7 adições e 1 exclusões
  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)