Currently, the data for API testing is located in the data/out directory instead of test/data. This is because the score_workflow API method lacks an option to specify the input path for the graph, so the latest generated graph is used by default.
An input parameter could be added to the score_workflow request, so the path for the graph used in scoring workflows is configurable. This parameter should then replace the hard coded "data/out" currently used when loading a graph in the score_workflow method.
graph = await pubmetric.network.create_network(inpath="data/out", load_graph=True)
Currently, the data for API testing is located in the
data/outdirectory instead oftest/data. This is because the score_workflow API method lacks an option to specify the input path for the graph, so the latest generated graph is used by default.An input parameter could be added to the score_workflow request, so the path for the graph used in scoring workflows is configurable. This parameter should then replace the hard coded
"data/out"currently used when loading a graph in the score_workflow method.