Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions steps/src/dummy_step/dummy_step.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "initial_id",
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
""
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.6"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
14 changes: 14 additions & 0 deletions steps/src/dummy_step/dummy_step.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
class BaseClass:
def __init__(self, context, name=None):
self.context = context
self.name = name


class DummyStep(BaseClass):
""" this is a dummy test for testing purpose"""
def __init__(self, name=None):
self.name = name

def do(self, x):
print(f"My name is {self.name} and my output is: {x+3}")
return x+3
17 changes: 17 additions & 0 deletions steps/src/dummy_step/item.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
categories:
description: 'this summy step print its name and return its input + 3'
example: dummy_step.ipynb
generationDate: 2025-12-15:12-06
hidden: false
labels:
author: Iguazio
mlrunVersion: 1.10.0-rc41
name: dummy_step
className: DummyStep
spec:
filename: dummy_step.py
image: mlrun/mlrun
requirements:
- numpy
version: 1.0.0
15 changes: 15 additions & 0 deletions steps/src/dummy_step/test_dummy_step.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from dummy_step import DummyStep


class TestDummyStep:
"""Test suite for TestOpenAIProxyApp class."""

def setup_method(self):
"""Set up test fixtures before each test method."""
self.step = DummyStep(name="test_echo_step")

def test_dummy_step(self):
res = self.step.do(3)
assert res == 6