Skip to content

Dummy

Dummy step for testing purposes.

This module contains a dummy step for testing purposes. It is used to test the Koheesio framework or to provide a simple example of how to create a new step.

Example

s = DummyStep(a="a", b=2)
s.execute()
In this case, s.output will be equivalent to the following dictionary:
{"a": "a", "b": 2, "c": "aa"}

koheesio.steps.dummy.DummyOutput #

Dummy output for testing purposes.

a instance-attribute #

a: str

b instance-attribute #

b: int

koheesio.steps.dummy.DummyStep #

Dummy step for testing purposes.

a instance-attribute #

a: str

b instance-attribute #

b: int

Output #

Dummy output for testing purposes.

c instance-attribute #

c: str

execute #

execute()

Dummy execute for testing purposes.

Source code in src/koheesio/steps/dummy.py
def execute(self):
    """Dummy execute for testing purposes."""
    self.output.a = self.a
    self.output.b = self.b
    self.output.c = self.a * self.b