blob: 0fa5bc32879218e8658c1e4a61a6e5f0fd3b8226 [file] [log] [blame]
import pytest
from burr.core import State
from burr.core.implementations import Placeholder
def test_placedholder_action():
action = Placeholder(reads=["foo"], writes=["bar"]).with_name("test")
assert action.reads == ["foo"]
assert action.writes == ["bar"]
with pytest.raises(NotImplementedError):
action.run(State({}))
with pytest.raises(NotImplementedError):
action.update({}, State({}))