Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinaHutter committed Sep 29, 2023
1 parent 9caa2ec commit b10633d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/data/graphs/fit_curve.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
},
"format":"NetCDF",
"options":{

}
},
"result":true
Expand Down
3 changes: 2 additions & 1 deletion tests/test_pg_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ def test_full_parse(process_graph_path):

parsed_graph_from_file.plot()


def test_fit_curve_parse():
flat_process_graph = json.load(open(TEST_DATA_DIR / "graphs" / "fit_curve.json"))
parsed_graph = OpenEOProcessGraph.from_json(json.dumps(flat_process_graph))
assert isinstance(parsed_graph, OpenEOProcessGraph)

# Dry-run to_callable after parsing
mock_process_registry = {
process_id: Process({}, lambda process_id: logger.debug(process_id), "predefined")
Expand Down

0 comments on commit b10633d

Please sign in to comment.