tests/conftest.py
def create_db_instance(null_db_instances, clean_db):
    """Create and save a singleton database instance."""
    try:
        database = {
            "type": "MongoDB",
            "name": "orion_test",
            "username": "user",
            "password": "pass",
        }
        db = Storage(of_type="legacy", database=database)
    except ValueError:
        db = Storage()

    db = db._db
    return db
Create and save a singleton database instance.
Create and save a singleton database instance.
Create and save a singleton database instance .
def create_db_instance(null_db_instances, clean_db):
    try:
        database = {
            "type": "MongoDB",
            "name": "orion_test",
            "username": "user",
            "password": "pass",
        }
        db = Storage(of_type="legacy", database=database)
    except ValueError:
        db = Storage()
    db = db._db
    return db
def create_db_instance ( null_db_instances , clean_db ) : try : database = { "type" : "MongoDB" , "name" : "orion_test" , "username" : "user" , "password" : "pass" , } db = Storage ( of_type = "legacy" , database = database ) except ValueError : db = Storage ( ) db = db . _db return db
Create and save a singleton database instance.
Create and save a singleton database instance .
"""Create and save a singleton database instance."""
null_db_instances
clean_db