Skip to content

Instantly share code, notes, and snippets.

@carljm
Created November 19, 2014 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carljm/e4fbf46d51c311834926 to your computer and use it in GitHub Desktop.
Save carljm/e4fbf46d51c311834926 to your computer and use it in GitHub Desktop.
$ ./tests/runtests.py migrations
Testing against Django installed in '/home/carljm/projects/django/django/django/django'
Creating test database for alias 'default'...
Creating test database for alias 'other'...
..................................................................................................................................s...............................EE.EE.E..........s.......................................
======================================================================
ERROR: test_squashmigrations_squashes (migrations.test_commands.SquashMigrationsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/carljm/projects/django/django/django/django/test/utils.py", line 187, in inner
return test_func(*args, **kwargs)
File "/home/carljm/projects/django/django/django/tests/migrations/test_commands.py", line 564, in test_squashmigrations_squashes
call_command("squashmigrations", "migrations", "0002", interactive=False, verbosity=0)
File "/home/carljm/projects/django/django/django/django/core/management/__init__.py", line 120, in call_command
return command.execute(*args, **defaults)
File "/home/carljm/projects/django/django/django/django/core/management/base.py", line 442, in execute
output = self.handle(*args, **options)
File "/home/carljm/projects/django/django/django/django/core/management/commands/squashmigrations.py", line 56, in handle
for al, mn in executor.loader.graph.forwards_plan((migration.app_label, migration.name))
File "/home/carljm/projects/django/django/django/django/db/migrations/graph.py", line 61, in forwards_plan
raise NodeNotFoundError("Node %r not a valid node" % (node, ), node)
django.db.migrations.graph.NodeNotFoundError: Node ('migrations', '0002_second') not a valid node
======================================================================
ERROR: test_ticket_23799_squashmigrations_no_optimize (migrations.test_commands.SquashMigrationsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/carljm/projects/django/django/django/django/test/utils.py", line 187, in inner
return test_func(*args, **kwargs)
File "/home/carljm/projects/django/django/django/tests/migrations/test_commands.py", line 583, in test_ticket_23799_squashmigrations_no_optimize
interactive=False, verbosity=1, no_optimize=True, stdout=out)
File "/home/carljm/projects/django/django/django/django/core/management/__init__.py", line 120, in call_command
return command.execute(*args, **defaults)
File "/home/carljm/projects/django/django/django/django/core/management/base.py", line 442, in execute
output = self.handle(*args, **options)
File "/home/carljm/projects/django/django/django/django/core/management/commands/squashmigrations.py", line 56, in handle
for al, mn in executor.loader.graph.forwards_plan((migration.app_label, migration.name))
File "/home/carljm/projects/django/django/django/django/db/migrations/graph.py", line 61, in forwards_plan
raise NodeNotFoundError("Node %r not a valid node" % (node, ), node)
django.db.migrations.graph.NodeNotFoundError: Node ('migrations', '0002_second') not a valid node
======================================================================
ERROR: test_empty_plan (migrations.test_executor.ExecutorTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/carljm/projects/django/django/django/django/test/utils.py", line 187, in inner
return test_func(*args, **kwargs)
File "/home/carljm/projects/django/django/django/tests/migrations/test_executor.py", line 117, in test_empty_plan
("migrations2", "0001_initial"),
File "/home/carljm/projects/django/django/django/django/db/migrations/executor.py", line 49, in migration_plan
for migration in self.loader.graph.forwards_plan(target):
File "/home/carljm/projects/django/django/django/django/db/migrations/graph.py", line 61, in forwards_plan
raise NodeNotFoundError("Node %r not a valid node" % (node, ), node)
django.db.migrations.graph.NodeNotFoundError: Node ('migrations', '0002_second') not a valid node
======================================================================
ERROR: test_run (migrations.test_executor.ExecutorTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/carljm/projects/django/django/django/django/test/utils.py", line 187, in inner
return test_func(*args, **kwargs)
File "/home/carljm/projects/django/django/django/tests/migrations/test_executor.py", line 27, in test_run
plan = executor.migration_plan([("migrations", "0002_second")])
File "/home/carljm/projects/django/django/django/django/db/migrations/executor.py", line 49, in migration_plan
for migration in self.loader.graph.forwards_plan(target):
File "/home/carljm/projects/django/django/django/django/db/migrations/graph.py", line 61, in forwards_plan
raise NodeNotFoundError("Node %r not a valid node" % (node, ), node)
django.db.migrations.graph.NodeNotFoundError: Node ('migrations', '0002_second') not a valid node
======================================================================
ERROR: test_soft_apply (migrations.test_executor.ExecutorTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/carljm/projects/django/django/django/django/test/utils.py", line 187, in inner
return test_func(*args, **kwargs)
File "/home/carljm/projects/django/django/django/tests/migrations/test_executor.py", line 160, in test_soft_apply
executor.migration_plan([("migrations", "0001_initial")]),
File "/home/carljm/projects/django/django/django/django/db/migrations/executor.py", line 49, in migration_plan
for migration in self.loader.graph.forwards_plan(target):
File "/home/carljm/projects/django/django/django/django/db/migrations/graph.py", line 61, in forwards_plan
raise NodeNotFoundError("Node %r not a valid node" % (node, ), node)
django.db.migrations.graph.NodeNotFoundError: Node ('migrations', '0001_initial') not a valid node
----------------------------------------------------------------------
Ran 219 tests in 1.579s
FAILED (errors=5, skipped=2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment