Netflix / metaflow

:rocket: Build and manage real-life ML, AI, and data science projects with ease!
https://metaflow.org
Apache License 2.0
8.04k stars 752 forks source link

Unable to utilise pytest unit test for metaflow #1810

Open iamdansari opened 4 months ago

iamdansari commented 4 months ago

from HelloWorld import HelloWorld from metaflow import Flow, Metaflow import pytest

@pytest.fixture def get_flow():

Setup

flow = HelloWorld() // OSError: could not get source code

Below is a simple Metaflow

from metaflow import FlowSpec, step

class HelloWorldFlow(FlowSpec): @step def start(self): print("Hello, World!") self.next(self.end)

@step
def end(self):
    print("Flow completed.")

if name == 'main': HelloWorldFlow()

savingoyal commented 4 months ago

@iamdansari we have a new API implementation landing soon that should help with this use case.