m2m-python/tests/conftest.py
2026-02-19 08:14:53 +01:00

9 lines
230 B
Python

import pytest
from m2m.nbiot import factory
@pytest.fixture
def bg95_mock():
"""Returns a BG95 module instance connected to the MockSerial engine."""
module = factory('BG95', 'MOCK')
with module:
yield module