memgraph/tck_engine/steps/graph.py
Matej Gradiček ea615a13b4 tck engine first implementation
Summary: tck engine first implementation

Reviewers: dgleich, teon.banek, buda, mferencevic

Reviewed By: buda, mferencevic

Subscribers: buda

Differential Revision: https://phabricator.memgraph.io/D95
2017-03-14 09:20:08 +00:00

15 lines
416 B
Python

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()