Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 7.36 KB | None | 0 0
  1. /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/backends/utils.py:85: ProgrammingError
  2. _________________________________________________________ ERROR at setup of test_index_view[cart1-302-/checkout/shipping-address/] __________________________________________________________
  3.  
  4. self = <django.db.backends.utils.CursorWrapper object at 0x7ff971c699e8>
  5. sql = 'SELECT "userprofile_address"."id", "userprofile_address"."first_name", "userprofile_address"."last_name", "userprofil...e_address"."country_area", "userprofile_address"."phone", "userprofile_address"."city_area" FROM "userprofile_address"'
  6. params = ()
  7. ignored_wrapper_args = (False, {'connection': <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7ff97af83ba8>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7ff971c699e8>})
  8.  
  9.     def _execute(self, sql, params, *ignored_wrapper_args):
  10.         self.db.validate_no_broken_transaction()
  11.         with self.db.wrap_database_errors:
  12.             if params is None:
  13.                 return self.cursor.execute(sql)
  14.             else:
  15. >               return self.cursor.execute(sql, params)
  16. E               psycopg2.ProgrammingError: relation "userprofile_address" does not exist
  17. E               LINE 1: ..."."phone", "userprofile_address"."city_area" FROM "userprofi...
  18. E                                                                            ^
  19.  
  20. /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/backends/utils.py:85: ProgrammingError
  21.  
  22. The above exception was the direct cause of the following exception:
  23.  
  24. request = <SubRequest 'django_db_setup' for <Function 'test_address_form_for_country[CN]'>>, django_test_environment = None
  25. django_db_blocker = <pytest_django.plugin._DatabaseBlocker object at 0x7ff9844a0710>, django_db_use_migrations = True, django_db_keepdb = False, django_db_createdb = False
  26. django_db_modify_db_settings = None
  27.  
  28.     @pytest.fixture(scope='session')
  29.     def django_db_setup(
  30.         request,
  31.         django_test_environment,
  32.         django_db_blocker,
  33.         django_db_use_migrations,
  34.         django_db_keepdb,
  35.         django_db_createdb,
  36.         django_db_modify_db_settings,
  37.     ):
  38.         """Top level fixture to ensure test databases are available"""
  39.         from .compat import setup_databases, teardown_databases
  40.    
  41.         setup_databases_args = {}
  42.    
  43.         if not django_db_use_migrations:
  44.             _disable_native_migrations()
  45.    
  46.         if django_db_keepdb and not django_db_createdb:
  47.             setup_databases_args['keepdb'] = True
  48.    
  49.         with django_db_blocker.unblock():
  50.             db_cfg = setup_databases(
  51.                 verbosity=pytest.config.option.verbose,
  52.                 interactive=False,
  53. >               **setup_databases_args
  54.             )
  55.  
  56. /home/shamhaad/miniconda3/lib/python3.6/site-packages/pytest_django/fixtures.py:97:
  57. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  58. /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/test/utils.py:176: in setup_databases
  59.     serialize=connection.settings_dict.get('TEST', {}).get('SERIALIZE', True),
  60. /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/backends/base/creation.py:68: in create_test_db
  61.     run_syncdb=True,
  62. /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/core/management/__init__.py:141: in call_command
  63.     return command.execute(*args, **defaults)
  64. /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/core/management/base.py:335: in execute
  65.     output = self.handle(*args, **options)
  66. /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/core/management/commands/migrate.py:200: in handle
  67.     fake_initial=fake_initial,
  68. /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/migrations/executor.py:117: in migrate
  69.     state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
  70. /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/migrations/executor.py:147: in _migrate_all_forwards
  71.     state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
  72. /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/migrations/executor.py:244: in apply_migration
  73.     state = migration.apply(state, schema_editor)
  74. /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/migrations/migration.py:119: in apply
  75.     operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
  76. /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/migrations/operations/special.py:190: in database_forwards
  77.     self.code(from_state.apps, schema_editor)
  78. saleor/account/migrations/0013_auto_20171120_0521.py:13: in convert_phone_number_to_phonenumberfield
  79.     for address in Address.objects.all():
  80. /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/models/query.py:272: in __iter__
  81.     self._fetch_all()
  82. /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/models/query.py:1179: in _fetch_all
  83.     self._result_cache = list(self._iterable_class(self))
  84. /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/models/query.py:53: in __iter__
  85.     results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  86. /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/models/sql/compiler.py:1066: in execute_sql
  87.     cursor.execute(sql, params)
  88. /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/backends/utils.py:68: in execute
  89.     return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  90. /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/backends/utils.py:77: in _execute_with_wrappers
  91.     return executor(sql, params, many, context)
  92. /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/backends/utils.py:85: in _execute
  93.     return self.cursor.execute(sql, params)
  94. /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/utils.py:89: in __exit__
  95.     raise dj_exc_value.with_traceback(traceback) from exc_value
  96. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  97.  
  98. self = <django.db.backends.utils.CursorWrapper object at 0x7ff971c699e8>
  99. sql = 'SELECT "userprofile_address"."id", "userprofile_address"."first_name", "userprofile_address"."last_name", "userprofil...e_address"."country_area", "userprofile_address"."phone", "userprofile_address"."city_area" FROM "userprofile_address"'
  100. params = ()
  101. ignored_wrapper_args = (False, {'connection': <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7ff97af83ba8>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7ff971c699e8>})
  102.  
  103.     def _execute(self, sql, params, *ignored_wrapper_args):
  104.         self.db.validate_no_broken_transaction()
  105.         with self.db.wrap_database_errors:
  106.             if params is None:
  107.                 return self.cursor.execute(sql)
  108.             else:
  109. >               return self.cursor.execute(sql, params)
  110. E               django.db.utils.ProgrammingError: relation "userprofile_address" does not exist
  111. E               LINE 1: ..."."phone", "userprofile_address"."city_area" FROM "userprofi...
  112. E                                                                            ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement