gleanerio / scheduler

Scheduling approaches related to gleaner tooling
Apache License 2.0
1 stars 4 forks source link

Testing/Refactoring #29

Closed valentinedwv closed 3 months ago

valentinedwv commented 1 year ago

For testing, it looks like the @graph needs to be moved from the file with all the ops.

someting like this works with @graph removed.

from implnet_ops_geocodes_demo_datasets import geocodes_demo_datasets_gleaner
def test_geocodes_demo_datasets_gleaner():
    res = geocodes_demo_datasets_gleaner()
    assert res.success
    assert res.output_for_node("find_highest_protein_cereal") == "Special K"

Maybe we can us the same set of @ops with parameters/context passed.

valentinedwv commented 1 year ago

https://github.com/dagster-io/dagster/blob/master/examples/feature_graph_backed_assets/README.md