Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/backends/utils.py:85: ProgrammingError
- _________________________________________________________ ERROR at setup of test_index_view[cart1-302-/checkout/shipping-address/] __________________________________________________________
- self = <django.db.backends.utils.CursorWrapper object at 0x7ff971c699e8>
- 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"'
- params = ()
- ignored_wrapper_args = (False, {'connection': <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7ff97af83ba8>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7ff971c699e8>})
- def _execute(self, sql, params, *ignored_wrapper_args):
- self.db.validate_no_broken_transaction()
- with self.db.wrap_database_errors:
- if params is None:
- return self.cursor.execute(sql)
- else:
- > return self.cursor.execute(sql, params)
- E psycopg2.ProgrammingError: relation "userprofile_address" does not exist
- E LINE 1: ..."."phone", "userprofile_address"."city_area" FROM "userprofi...
- E ^
- /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/backends/utils.py:85: ProgrammingError
- The above exception was the direct cause of the following exception:
- request = <SubRequest 'django_db_setup' for <Function 'test_address_form_for_country[CN]'>>, django_test_environment = None
- django_db_blocker = <pytest_django.plugin._DatabaseBlocker object at 0x7ff9844a0710>, django_db_use_migrations = True, django_db_keepdb = False, django_db_createdb = False
- django_db_modify_db_settings = None
- @pytest.fixture(scope='session')
- def django_db_setup(
- request,
- django_test_environment,
- django_db_blocker,
- django_db_use_migrations,
- django_db_keepdb,
- django_db_createdb,
- django_db_modify_db_settings,
- ):
- """Top level fixture to ensure test databases are available"""
- from .compat import setup_databases, teardown_databases
- setup_databases_args = {}
- if not django_db_use_migrations:
- _disable_native_migrations()
- if django_db_keepdb and not django_db_createdb:
- setup_databases_args['keepdb'] = True
- with django_db_blocker.unblock():
- db_cfg = setup_databases(
- verbosity=pytest.config.option.verbose,
- interactive=False,
- > **setup_databases_args
- )
- /home/shamhaad/miniconda3/lib/python3.6/site-packages/pytest_django/fixtures.py:97:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/test/utils.py:176: in setup_databases
- serialize=connection.settings_dict.get('TEST', {}).get('SERIALIZE', True),
- /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/backends/base/creation.py:68: in create_test_db
- run_syncdb=True,
- /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/core/management/__init__.py:141: in call_command
- return command.execute(*args, **defaults)
- /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/core/management/base.py:335: in execute
- output = self.handle(*args, **options)
- /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/core/management/commands/migrate.py:200: in handle
- fake_initial=fake_initial,
- /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/migrations/executor.py:117: in migrate
- state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
- /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/migrations/executor.py:147: in _migrate_all_forwards
- state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
- /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/migrations/executor.py:244: in apply_migration
- state = migration.apply(state, schema_editor)
- /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/migrations/migration.py:119: in apply
- operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
- /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/migrations/operations/special.py:190: in database_forwards
- self.code(from_state.apps, schema_editor)
- saleor/account/migrations/0013_auto_20171120_0521.py:13: in convert_phone_number_to_phonenumberfield
- for address in Address.objects.all():
- /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/models/query.py:272: in __iter__
- self._fetch_all()
- /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/models/query.py:1179: in _fetch_all
- self._result_cache = list(self._iterable_class(self))
- /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/models/query.py:53: in __iter__
- results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
- /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/models/sql/compiler.py:1066: in execute_sql
- cursor.execute(sql, params)
- /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/backends/utils.py:68: in execute
- return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
- /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/backends/utils.py:77: in _execute_with_wrappers
- return executor(sql, params, many, context)
- /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/backends/utils.py:85: in _execute
- return self.cursor.execute(sql, params)
- /home/shamhaad/miniconda3/lib/python3.6/site-packages/django/db/utils.py:89: in __exit__
- raise dj_exc_value.with_traceback(traceback) from exc_value
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <django.db.backends.utils.CursorWrapper object at 0x7ff971c699e8>
- 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"'
- params = ()
- ignored_wrapper_args = (False, {'connection': <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7ff97af83ba8>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7ff971c699e8>})
- def _execute(self, sql, params, *ignored_wrapper_args):
- self.db.validate_no_broken_transaction()
- with self.db.wrap_database_errors:
- if params is None:
- return self.cursor.execute(sql)
- else:
- > return self.cursor.execute(sql, params)
- E django.db.utils.ProgrammingError: relation "userprofile_address" does not exist
- E LINE 1: ..."."phone", "userprofile_address"."city_area" FROM "userprofi...
- E ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement