Profile
This commit is contained in:
@@ -715,6 +715,7 @@ class DexIdentityMigrationTests(TransactionTestCase):
|
||||
previous = [("members", "0003_membership_levels")]
|
||||
current = [("members", "0004_dex_login_identity")]
|
||||
executor = MigrationExecutor(connection)
|
||||
latest = executor.loader.graph.leaf_nodes()
|
||||
executor.migrate(previous)
|
||||
try:
|
||||
OldAccount = executor.loader.project_state(previous).apps.get_model("members", "Account")
|
||||
@@ -733,4 +734,4 @@ class DexIdentityMigrationTests(TransactionTestCase):
|
||||
new = NewAccount.objects.create(uid=uid, email=f"{uid}@example.org", oidc_issuer=settings.DEX_ISSUER, oidc_sub=f"dex-{uid}")
|
||||
self.assertIsNone(NewAccount.objects.values_list("ldap_uuid", flat=True).get(pk=new.pk))
|
||||
finally:
|
||||
MigrationExecutor(connection).migrate(current)
|
||||
MigrationExecutor(connection).migrate(latest)
|
||||
|
||||
Reference in New Issue
Block a user