File tree 8 files changed +8
-8
lines changed
8 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ FROM micropython/unix:v1.18
10
10
# use "volumes" in docker-compose file to remove need of rebuilding
11
11
# COPY ./ /home
12
12
# COPY umodbus /root/.micropython/lib/umodbus
13
- # COPY unittest .py /root/.micropython/lib/unittest .py
13
+ # COPY mpy_unittest .py /root/.micropython/lib/mpy_unittest .py
14
14
15
15
RUN micropython-dev -m upip install micropython-ulogging
16
16
RUN micropython-dev -m upip install micropython-urequests
Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ COPY ./ /home
11
11
# keep examples and tests registers JSON file easily in sync
12
12
COPY registers/example.json /home/tests/test-registers.json
13
13
COPY umodbus /root/.micropython/lib/umodbus
14
- COPY unittest .py /root/.micropython/lib/unittest .py
14
+ COPY mpy_unittest .py /root/.micropython/lib/mpy_unittest .py
15
15
16
16
RUN micropython-dev -m upip install micropython-ulogging
17
17
RUN micropython-dev -m upip install micropython-urequests
18
- RUN micropython-dev -c "import unittest; unittest.main('tests')"
18
+ RUN micropython-dev -c "import mpy_unittest as unittest; unittest.main('tests')"
19
19
20
20
ENTRYPOINT ["/bin/bash"]
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ services:
35
35
volumes :
36
36
- ./:/home
37
37
- ./umodbus:/root/.micropython/lib/umodbus
38
- - ./unittest .py:/root/.micropython/lib/unittest .py
38
+ - ./mpy_unittest .py:/root/.micropython/lib/mpy_unittest .py
39
39
depends_on :
40
40
- micropython-client
41
41
command :
File renamed without changes.
Original file line number Diff line number Diff line change 4
4
5
5
# import sys
6
6
import ulogging as logging
7
- import unittest
7
+ import mpy_unittest as unittest
8
8
9
9
10
10
class TestAbsoluteTruth (unittest .TestCase ):
Original file line number Diff line number Diff line change 4
4
5
5
from umodbus .typing import List
6
6
import ulogging as logging
7
- import unittest
7
+ import mpy_unittest as unittest
8
8
from umodbus import const as Const
9
9
10
10
Original file line number Diff line number Diff line change 3
3
"""Unittest for testing functions of umodbus"""
4
4
5
5
import ulogging as logging
6
- import unittest
6
+ import mpy_unittest as unittest
7
7
from umodbus import functions
8
8
from umodbus import const as Const
9
9
Original file line number Diff line number Diff line change 6
6
from random import randint
7
7
import struct
8
8
import ulogging as logging
9
- import unittest
9
+ import mpy_unittest as unittest
10
10
from umodbus .tcp import TCP as ModbusTCPMaster
11
11
12
12
You can’t perform that action at this time.
0 commit comments