Skip to content

Commit e1d5312

Browse files
authored
Merge pull request #1 from pimoroni/patch-ox-red-tests
Patch ox/red tests
2 parents 322d4e4 + 25cc2e2 commit e1d5312

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python: [2.7, 3.6, 3.7, 3.8]
14+
python: [2.7, 3.5, 3.7, 3.9]
1515

1616
steps:
1717
- uses: actions/checkout@v2
@@ -33,4 +33,4 @@ jobs:
3333
run: |
3434
python -m pip install coveralls
3535
coveralls --service=github
36-
if: ${{ matrix.python == '3.8' }}
36+
if: ${{ matrix.python == '3.9' }}

library/mics6814/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
MICS6814_LED_B = 2 # P1.0
1111

1212
MICS6814_VREF = 14 # P1.4 AIN0 - 3v3
13-
MICS6814_RED = 13 # P0.7 AIN2 - Oxidizing
13+
MICS6814_RED = 13 # P0.7 AIN2 - Reducing
1414
MICS6814_NH3 = 11 # P0.6 AIN3 - NH3
15-
MICS6814_OX = 12 # P0.5 AIN4 - Reducing
15+
MICS6814_OX = 12 # P0.5 AIN4 - Oxidizing
1616

1717
MICS6814_HEATER_EN = 1 # P1.5 Heater Enable
1818

library/tests/test_io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_get_raw_red(ioexpander):
3838
mics6814 = MICS6814()
3939

4040
mics6814.get_raw_red()
41-
mics6814._ioe.input.assert_called_with(12)
41+
mics6814._ioe.input.assert_called_with(13)
4242

4343

4444
def test_get_raw_nh3(ioexpander):
@@ -56,7 +56,7 @@ def test_get_raw_oxd(ioexpander):
5656
mics6814 = MICS6814()
5757

5858
mics6814.get_raw_oxd()
59-
mics6814._ioe.input.assert_called_with(13)
59+
mics6814._ioe.input.assert_called_with(12)
6060

6161

6262
def test_get_adc(ioexpander):

library/tests/test_setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ def test_setup(ioexpander):
1313
mock.call(2, ioexpander.PWM),
1414

1515
mock.call(14, ioexpander.ADC),
16-
mock.call(12, ioexpander.ADC),
17-
mock.call(11, ioexpander.ADC),
1816
mock.call(13, ioexpander.ADC),
17+
mock.call(11, ioexpander.ADC),
18+
mock.call(12, ioexpander.ADC),
1919

2020
mock.call(1, ioexpander.OUT)
2121
))

library/tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{27,36,37,38},qa
2+
envlist = py{27,35,37,39},qa
33
skip_missing_interpreters = True
44

55
[testenv]

0 commit comments

Comments
 (0)