Page MenuHomeSoftware Heritage

test_migrations.py
No OneTemporary

test_migrations.py

# Copyright (C) 2022 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
APP_NAME = "swh_web_mailmap"
MIGRATION_0001 = "0001_initial"
def test_mailmap_django_app(migrator):
state = migrator.apply_tested_migration((APP_NAME, MIGRATION_0001))
UserMailmap = state.apps.get_model(APP_NAME, "UserMailmap")
assert UserMailmap

File Metadata

Mime Type
text/x-python
Expires
Jul 4 2025, 9:14 AM (6 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3238600

Event Timeline