Browse Source

fix tests with new library name

kmpm 8 years ago
parent
commit
5e25197a65
3 changed files with 4 additions and 6 deletions
  1. 2 2
      tests/misc.py
  2. 1 3
      tests/uploader.py
  3. 1 1
      tests/winserial.py

+ 2 - 2
tests/misc.py

@@ -1,8 +1,8 @@
 # -*- coding: utf-8 -*-
 # Copyright (C) 2015-2016 Peter Magnusson <peter@birchroad.net>
 import unittest
-from lib.utils import default_port
-from lib import __version__
+from nodemcu_uploader.utils import default_port
+from nodemcu_uploader import __version__
 import os
 
 class MiscTestCase(unittest.TestCase):

+ 1 - 3
tests/uploader.py

@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 # Copyright (C) 2015-2016 Peter Magnusson <peter@birchroad.net>
 import unittest
-from lib import Uploader, __version__
+from nodemcu_uploader import Uploader, __version__
 
 #on which port should the tests be performed
 PORT = 'loop://'
@@ -11,7 +11,5 @@ BAUD = 115200
 
 class UploaderTestCase(unittest.TestCase):
 
-
-
     def test_initialize(self):
         uploader = Uploader(PORT, BAUD)

+ 1 - 1
tests/winserial.py

@@ -3,7 +3,7 @@
 import unittest
 import os
 import serial
-from lib.utils import default_port
+from nodemcu_uploader.utils import default_port
 import time
 
 SERIALPORT = os.environ.get('SERIALPORT', default_port())