memgraph/tck_engine/steps/graph.py

15 lines
416 B
Python
Raw Normal View History

import database
from graph_properties import GraphProperties
from behave import *
@given('an empty graph')
def empty_graph_step(context):
database.query("MATCH (n) DETACH DELETE n", context)
context.graph_properties.set_beginning_parameters()
@given('any graph')
def any_graph_step(context):
database.query("MATCH (n) DETACH DELETE n", context)
context.graph_properties.set_beginning_parameters()