tidy(nodes): remove commented tests

This commit is contained in:
psychedelicious
2024-02-17 20:08:22 +11:00
parent 67daa127e3
commit da9991e361
2 changed files with 0 additions and 143 deletions

View File

@ -39,30 +39,6 @@ def batch_graph() -> Graph:
return g
# def test_populate_graph_with_subgraph():
# g1 = Graph()
# g1.add_node(PromptTestInvocation(id="1", prompt="Banana sushi"))
# g1.add_node(PromptTestInvocation(id="2", prompt="Banana sushi"))
# n1 = PromptTestInvocation(id="1", prompt="Banana snake")
# subgraph = Graph()
# subgraph.add_node(n1)
# g1.add_node(GraphInvocation(id="3", graph=subgraph))
# nfvs = [
# NodeFieldValue(node_path="1", field_name="prompt", value="Strawberry sushi"),
# NodeFieldValue(node_path="2", field_name="prompt", value="Strawberry sunday"),
# NodeFieldValue(node_path="3.1", field_name="prompt", value="Strawberry snake"),
# ]
# g2 = populate_graph(g1, nfvs)
# # do not mutate g1
# assert g1 is not g2
# assert g2.get_node("1").prompt == "Strawberry sushi"
# assert g2.get_node("2").prompt == "Strawberry sunday"
# assert g2.get_node("3.1").prompt == "Strawberry snake"
def test_create_sessions_from_batch_with_runs(batch_data_collection, batch_graph):
b = Batch(graph=batch_graph, data=batch_data_collection, runs=2)
t = list(create_session_nfv_tuples(batch=b, maximum=1000))