Пример #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
Пример #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
Пример #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
Пример #4
0
def aiida_env():
    with fixture_manager() as manager:
        yield manager
Пример #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