Test stitch all with mocking

This commit is contained in:
jaknapper 2026-05-15 17:05:08 +01:00
parent bd796f98a1
commit 0f842c622b
4 changed files with 53 additions and 41 deletions

View file

@ -50,20 +50,6 @@ def _clear_scan_dir() -> None:
shutil.rmtree(SCAN_DIR)
@pytest.fixture
def smart_scan_thing(mocker):
"""Return a smart scan thing as a fixture."""
thing = create_thing_without_server(
SmartScanThing,
default_workflow="mock-_all_workflows",
mock_all_slots=True,
)
type(thing._thing_server_interface).application_config = mocker.PropertyMock(
return_value={"data_folder": tempfile.gettempdir()}
)
return thing
@pytest.fixture
def entered_smart_scan_thing(smart_scan_thing):
"""Yield a smart scan thing as a fixture that has been entred.