Skip to content

Commit

Permalink
Update pytest-embedded/pytest_embedded/dut_factory.py
Browse files Browse the repository at this point in the history
Co-authored-by: Fu Hanxi <[email protected]>
  • Loading branch information
P-R-O-C-H-Y and hfudev authored Apr 25, 2024
1 parent daec8cf commit 42a8265
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions pytest-embedded/pytest_embedded/dut_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,25 +290,14 @@ def _fixture_classes_and_options_fn(
if 'wokwi' in _services:
from pytest_embedded_wokwi import WokwiCLI

if 'idf' in _services:
from pytest_embedded_wokwi.idf import IDFFirmwareResolver

resolver = IDFFirmwareResolver
app = IdfApp
elif 'arduino' in _services:
from pytest_embedded_wokwi.arduino import ArduinoFirmwareResolver

resolver = ArduinoFirmwareResolver
app = ArduinoApp

classes[fixture] = WokwiCLI
kwargs[fixture].update({
'wokwi_cli_path': wokwi_cli_path,
'wokwi_timeout': wokwi_timeout,
'msg_queue': msg_queue,
'app': app,
'app': None,
'meta': _meta,
'firmware_resolver': resolver,
'firmware_resolver': None,
})

classes[fixture] = WokwiCLI
Expand Down

0 comments on commit 42a8265

Please sign in to comment.