예제 #1
0
def aiida_env():
    """Set up the db environment."""
    with fixture_manager() as manager:
        config_file = py_path.local(manager.root_dir).join('.aiida', 'config.json')
        print config_file.read()
        yield manager
예제 #2
0
def aiida_profile():
    from aiida.utils.fixtures import fixture_manager

    with fixture_manager() as fixture_mgr:
        fixture_mgr.create_profile()
        yield fixture_mg
예제 #3
0
def aiida_env():
    with fixture_manager() as manager:
        yield manager
예제 #4
0
def aiida_profile():
    """setup a test profile for the duration of the tests"""
    with fixture_manager() as fixture_mgr:
        yield fixture_mgr