Skip to content

Commit 55048be

Browse files
nkpro2000srbessman
authored andcommitted
Update {UART,SPI} supported devices
1 parent 347c7ae commit 55048be

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

tests/test_spi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
SPI_SUPPORTED_DEVICES = [
2121
# "PSLab vMOCK", # Uncomment after adding recording json files.
22-
"PSLab V6",
22+
"PSLab V6\n",
2323
]
2424

2525
WRITE_DATA8 = 0b10100101

tests/test_uart.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
33
When integration testing, the PSLab's logic analyzer is used to verify the
44
function of the I2C bus. Before running the integration tests, connect:
5-
TxD2->LA1
6-
RxD2->SQ1
5+
TxD2->LA1 | PGD2 -> LA1 (for v5)
6+
RxD2->SQ1 | PGC2 -> SQ1 (for v5)
77
"""
88

99
import pytest
@@ -13,11 +13,6 @@
1313
from pslab.instrument.waveform_generator import PWMGenerator
1414
from pslab.serial_handler import SerialHandler, MockHandler
1515

16-
SPI_SUPPORTED_DEVICES = [
17-
# "PSLab vMOCK", # Uncomment after adding recording json files.
18-
"PSLab V6",
19-
]
20-
2116
WRITE_DATA = 0x55
2217
TXD2 = "LA1"
2318
RXD2 = "SQ1"
@@ -32,8 +27,6 @@
3227

3328
@pytest.fixture
3429
def uart(handler: SerialHandler) -> UART:
35-
if handler.version not in SPI_SUPPORTED_DEVICES:
36-
pytest.skip("UART2 not supported by this device.")
3730
handler._logging = True
3831
return UART(device=handler)
3932

0 commit comments

Comments
 (0)