瀏覽代碼

add a fake port to test

kmpm 8 年之前
父節點
當前提交
8e33cd7e65
共有 1 個文件被更改,包括 7 次插入1 次删除
  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)