Advertisement
Guest User

Untitled

a guest
Jul 27th, 2021
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. placement.tests.functional.db.test_migrations.TestMigrationsSQLite.test_consumer_types_422ece571366
  2. ---------------------------------------------------------------------------------------------------
  3.  
  4. Captured traceback:
  5. ~~~~~~~~~~~~~~~~~~~
  6. Traceback (most recent call last):
  7.  
  8. File "/home/vagrant/placement/placement/tests/functional/db/test_migrations.py", line 232, in test_consumer_types_422ece571366
  9. self.migration_api.upgrade('422ece571366')
  10.  
  11. File "/home/vagrant/placement/placement/db/sqlalchemy/migration.py", line 67, in upgrade
  12. alembic.command.upgrade(config, revision)
  13.  
  14. File "/home/vagrant/placement/.tox/py38/lib/python3.8/site-packages/alembic/command.py", line 294, in upgrade
  15. script.run_env()
  16.  
  17. File "/home/vagrant/placement/.tox/py38/lib/python3.8/site-packages/alembic/script/base.py", line 490, in run_env
  18. util.load_python_file(self.dir, "env.py")
  19.  
  20. File "/home/vagrant/placement/.tox/py38/lib/python3.8/site-packages/alembic/util/pyfiles.py", line 97, in load_python_file
  21. module = load_module_py(module_id, path)
  22.  
  23. File "/home/vagrant/placement/.tox/py38/lib/python3.8/site-packages/alembic/util/compat.py", line 184, in load_module_py
  24. spec.loader.exec_module(module)
  25.  
  26. File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  27.  
  28. File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  29.  
  30. File "/home/vagrant/placement/placement/db/sqlalchemy/alembic/env.py", line 65, in <module>
  31. run_migrations_online()
  32.  
  33. File "/home/vagrant/placement/placement/db/sqlalchemy/alembic/env.py", line 59, in run_migrations_online
  34. context.run_migrations()
  35.  
  36. File "<string>", line 8, in run_migrations
  37.  
  38. File "/home/vagrant/placement/.tox/py38/lib/python3.8/site-packages/alembic/runtime/environment.py", line 813, in run_migrations
  39. self.get_context().run_migrations(**kw)
  40.  
  41. File "/home/vagrant/placement/.tox/py38/lib/python3.8/site-packages/alembic/runtime/migration.py", line 561, in run_migrations
  42. step.migration_fn(**kw)
  43.  
  44. File "/home/vagrant/placement/placement/db/sqlalchemy/alembic/versions/422ece571366_add_consumer_types_table.py", line 69, in upgrade
  45. batch_op.add_column(
  46.  
  47. File "<string>", line 3, in add_column
  48.  
  49. File "/home/vagrant/placement/.tox/py38/lib/python3.8/site-packages/alembic/operations/ops.py", line 1817, in batch_add_column
  50. if insert_before:
  51.  
  52. File "/home/vagrant/placement/.tox/py38/lib/python3.8/site-packages/sqlalchemy/sql/elements.py", line 577, in __bool__
  53. raise TypeError("Boolean value of this clause is not defined")
  54.  
  55. TypeError: Boolean value of this clause is not defined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement