소스 검색

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)