tests/functional/commands/conftest.py
def db_instance(null_db_instances):
    """Create and save a singleton database instance."""
    try:
        db = Database(
            of_type="MongoDB", name="orion_test", username="user", password="pass"
        )
    except ValueError:
        db = Database()

    return db
Create and save a singleton database instance.
Create and save a singleton database instance.
Create and save a singleton database instance .
def db_instance(null_db_instances):
    try:
        db = Database(
            of_type="MongoDB", name="orion_test", username="user", password="pass"
        )
    except ValueError:
        db = Database()
    return db
def db_instance ( null_db_instances ) : try : db = Database ( of_type = "MongoDB" , name = "orion_test" , username = "user" , password = "pass" ) except ValueError : db = Database ( ) 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