migrator = <django_test_migrations.migrator.Migrator object at 0x7f5102099f98>
def test_add_forge_now_store_submitter_forward_username(migrator):
"""Basic migration test to check new model authorized empty comment"""
> state = migrator.apply_tested_migration((APP_NAME, MIGRATION_0002))
.tox/py3/lib/python3.7/site-packages/swh/web/add_forge_now/tests/test_migration.py:104:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/django_test_migrations/migrator.py:66: in apply_tested_migration
return self._migrate(normalize(targets))
.tox/py3/lib/python3.7/site-packages/django_test_migrations/migrator.py:84: in _migrate
return self._executor.migrate(migration_targets, plan=plan)
.tox/py3/lib/python3.7/site-packages/django/db/migrations/executor.py:94: in migrate
plan = self.migration_plan(targets)
.tox/py3/lib/python3.7/site-packages/django/db/migrations/executor.py:58: in migration_plan
for migration in self.loader.graph.forwards_plan(target):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <MigrationGraph: nodes=39, edges=38>
target = ('add_forge_now', '0002_authorized_null_comment')
def forwards_plan(self, target):
"""
Given a node, return a list of which previous nodes (dependencies) must
be applied, ending with the node itself. This is the list you would
follow if applying the migrations to a database.
"""
if target not in self.nodes:
> raise NodeNotFoundError("Node %r not a valid node" % (target,), target)
E django.db.migrations.exceptions.NodeNotFoundError: Node ('add_forge_now', '0002_authorized_null_comment') not a valid node
.tox/py3/lib/python3.7/site-packages/django/db/migrations/graph.py:204: NodeNotFoundError
TEST RESULT
TEST RESULT
- Run At
- Mar 29 2022, 4:02 PM