28 lines
492 B
Python
28 lines
492 B
Python
"""Shared fixtures for the simulator test suite."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import pytest
|
|
|
|
from wago_sim.app import build_app
|
|
from wago_sim.modules import DI_8, DI_16, DO_8, DO_16, AI_2, AO_2
|
|
|
|
|
|
@pytest.fixture
|
|
def pump_modules():
|
|
return [DI_8, DI_16, DO_8, DO_16, AI_2, AO_2]
|
|
|
|
|
|
@pytest.fixture
|
|
def app(pump_modules):
|
|
return build_app(modules=pump_modules)
|
|
|
|
|
|
@pytest.fixture
|
|
def datastore(app):
|
|
return app.datastore
|
|
|
|
|
|
@pytest.fixture
|
|
def node(app):
|
|
return app.node |