13 lines
400 B
Python
13 lines
400 B
Python
"""Store helpers for tests that work below the API."""
|
|
|
|
from typing import Any
|
|
|
|
|
|
def created(store: Any, document: Any) -> Any:
|
|
"""*document* created as a draft, under its key as its id.
|
|
|
|
How a store test made one before ids were issued: the id it addresses the
|
|
object by is the name it gave. Works for flows and dashboards alike.
|
|
"""
|
|
return store.create(document, document.name)
|