Ejemplo n.º 1
0
def aiida_environment():
    """setup a test profile for the duration of the tests"""
    # TODO this is required locally for click
    # (see https://click.palletsprojects.com/en/7.x/python3/)
    os.environ['LC_ALL'] = 'en_US.UTF-8'
    with fixture_manager() as fixture_mgr:
        yield fixture_mgr
Ejemplo n.º 2
0
def aiida_profile():
    """Set up a test profile for the duration of the tests"""
    with fixture_manager() as fixture_mgr:
        yield fixture_mgr
Ejemplo n.º 3
0
def fixture_environment():
    """Setup a complete AiiDA test environment, with configuration, profile, database and repository."""
    with fixture_manager() as manager:
        from aiida.common.log import configure_logging
        configure_logging(with_orm=True)
        yield manager
Ejemplo n.º 4
0
def aiida_env():
    with fixture_manager() as manager:
        yield manager
Ejemplo n.º 5
0
def aiida_profile():
    """setup a test profile for the duration of the tests"""
    from aiida.manage.fixtures import fixture_manager

    with fixture_manager() as fixture_mgr:
        yield fixture_mgr