def generator( populated_graph_db: graph_tuple_database.Database, ) -> random_log_database_generator.RandomLogDatabaseGenerator: """A test fixture which returns a log generator.""" return random_log_database_generator.RandomLogDatabaseGenerator( populated_graph_db )
def generator( request, graph_db: graph_tuple_database.Database ) -> random_log_database_generator.RandomLogDatabaseGenerator: """A test fixture which returns a log generator.""" graph_db = graph_db if request.param else None return random_log_database_generator.RandomLogDatabaseGenerator( graph_db=graph_db )
def Benchmark(): """A microbenchmark that instantiates a new generator.""" generator = random_log_database_generator.RandomLogDatabaseGenerator() generator.CreateRandomRunLogs()