Exemple #1
0
def log_db(request) -> log_database.Database:
  """A test fixture which yields an empty log database."""
  yield from testing_databases.YieldDatabase(
    log_database.Database, request.param
  )
def empty_db(request) -> graph_tuple_database.Database:
    """A test fixture which yields an empty graph proto database."""
    yield from testing_databases.YieldDatabase(graph_tuple_database.Database,
                                               request.param)
Exemple #3
0
def graph_db(request) -> graph_tuple_database.Database:
    yield from testing_databases.YieldDatabase(graph_tuple_database.Database,
                                               request.param)
Exemple #4
0
def disposable_log_db(request) -> log_database.Database:
    """A test fixture which yields an empty log database for every test."""
    yield from testing_databases.YieldDatabase(log_database.Database,
                                               request.param)
Exemple #5
0
def proto_db(request) -> unlabelled_graph_database.Database:
    yield from testing_databases.YieldDatabase(
        unlabelled_graph_database.Database, request.param)
Exemple #6
0
def db(request) -> unlabelled_graph_database.Database:
  """A test fixture which yields an empty graph proto database."""
  yield from testing_databases.YieldDatabase(
    unlabelled_graph_database.Database, request.param
  )
Exemple #7
0
def db(request) -> ir_database.Database:
    """A test fixture which yields an empty IR database."""
    yield from testing_databases.YieldDatabase(ir_database.Database,
                                               request.param)
Exemple #8
0
def empty_graph_db(request) -> graph_tuple_database.Database:
    """A test fixture which yields a graph database with random graph tuples."""
    yield from testing_databases.YieldDatabase(graph_tuple_database.Database,
                                               request.param)
Exemple #9
0
def empty_db(request) -> Database:
    """A test fixture which yields an empty database."""
    yield from testing_databases.YieldDatabase(Database, request.param)