# -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved.                     #
# This file is part of the AiiDA code.                                    #
#                                                                         #
# The code is hosted on GitHub at https://github.com/aiidateam/aiida-core #
# For further information on the license, see the LICENSE.txt file        #
# For further information please visit http://www.aiida.net               #
###########################################################################
"""Test migrating from the base of the sqlalchemy branch, to the main head."""
from aiida.storage.psql_dos.migrator import PsqlDostoreMigrator


def test_migrate(perform_migrations: PsqlDostoreMigrator):
    """Test that the migrator can migrate from the base of the sqlalchemy branch, to the main head."""
    perform_migrations.migrate_up('sqlalchemy@e<PASSWORD>')  # the base of the sqlalchemy branch
    perform_migrations.migrate()
    perform_migrations.validate_storage()

# -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved.                     #
# This file is part of the AiiDA code.                                    #
#                                                                         #
# The code is hosted on GitHub at https://github.com/aiidateam/aiida-core #
# For further information on the license, see the LICENSE.txt file        #
# For further information please visit http://www.aiida.net               #
###########################################################################
"""Test migrating from the base of the sqlalchemy branch, to the main head."""
from aiida.storage.psql_dos.migrator import PsqlDostoreMigrator


def test_migrate(perform_migrations: PsqlDostoreMigrator):
    """Test that the migrator can migrate from the base of the sqlalchemy branch, to the main head."""
    perform_migrations.migrate_up('sqlalchemy@e<PASSWORD>')  # the base of the sqlalchemy branch
    perform_migrations.migrate()
    perform_migrations.validate_storage()

# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved.                     # # This file is part of the AiiDA code.                                    # #                                                                         # # The code is hosted on GitHub at https://github.com/aiidateam/aiida-core # # For further information on the license, see the LICENSE.txt file        # # For further information please visit http://www.aiida.net               # ########################################################################### Test migrating from the base of the sqlalchemy branch, to the main head. Test that the migrator can migrate from the base of the sqlalchemy branch, to the main head. # the base of the sqlalchemy branch