Skip to content

Commit 52f5dd1

Browse files
authored
Update coderbot_test.py - fix
1 parent 24ef531 commit 52f5dd1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/coderbot_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import unittest
22
import test.pigpio_mock
33
import coderbot
4+
import config
45
import logging
56

67
logger = logging.getLogger()
@@ -17,7 +18,8 @@ class CoderBotDCMotorTestCase(unittest.TestCase):
1718
def setUp(self):
1819
coderbot.pigpio.pi = test.pigpio_mock.PIGPIOMock
1920
coderbot.CoderBot._instance = None
20-
self.bot = coderbot.CoderBot.get_instance()
21+
settings = config.Config.read().get('settings')
22+
self.bot = coderbot.CoderBot.get_instance(settings)
2123

2224
def test_motor_forward(self):
2325
self.bot.forward(speed=100, elapse=0.1)

0 commit comments

Comments
 (0)