You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Public dotflow.testing package with pytest fixtures #295
There is no public test harness for consumers. Anyone testing a workflow must either:
Mock StorageDefault, ServerDefault, MetricsDefault, LogDefault by hand.
Or rely on the real defaults, which is fine in unit tests but
surfaces friction when one of them does I/O.
Concept
Expose a dotflow.testing module with ready-made fixtures. Consumers import them in their conftest.py with one line.
Proposed module
# dotflow/testing/__init__.pyimportpytestfromdotflowimportDotFlow, Configfromdotflow.providers.storage_defaultimportStorageDefault@pytest.fixturedefdotflow_storage():
"""Fresh in-memory storage for each test."""returnStorageDefault()
@pytest.fixturedefdotflow_config(dotflow_storage):
returnConfig(storage=dotflow_storage)
@pytest.fixturedefdotflow_workflow(dotflow_config):
"""A clean DotFlow with in-memory storage and no managed server."""returnDotFlow(config=dotflow_config)
Activity
guptapiyush16 commentedon May 3, 2026
I would like to work on it, please assign it to me
FernandoCelmer commentedon May 3, 2026
Welcome @guptapiyush16! Assigned to you. 😃
A few tips to get started:
develop→feature/295dotflow/testing/directory already exists withStorageContract(added in ⚙️ FEATURE-#287: Expand Storage ABC with delete, list, TTL, CAS #297) — you'll addthe pytest fixtures there
pytestas an optional dependency (inextras_require)Feel free to open a draft PR early for feedback. Any questions, just ask here!