Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.web.tests.auth.test_mailmap::Tests / Python tests / test_mailmap_add_duplicate
Failed

TEST RESULT

Run At
Mar 29 2022, 10:03 AM
Details
self = <django.db.backends.utils.CursorWrapper object at 0x7fea6fdd13c8> sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"' params = ('pbkdf2_sha256$150000$j7R68lawmM5t$oSMcWFYnDp9fWsHoUTuwzgaNngrUbX5dIRiEUrhPwvo=', None, False, 'mailmap-user', '', '', ...) ignored_wrapper_args = (False, {'connection': <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7fea78b10ef0>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7fea6fdd13c8>}) 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.errors.UndefinedTable: relation "auth_user" does not exist E LINE 1: INSERT INTO "auth_user" ("password", "last_login", "is_super... E ^ .tox/py3/lib/python3.7/site-packages/django/db/backends/utils.py:84: UndefinedTable The above exception was the direct cause of the following exception: @pytest.fixture def mailmap_user(): > mailmap_user = User.objects.create_user(username="mailmap-user", password="") .tox/py3/lib/python3.7/site-packages/swh/web/tests/conftest.py:1245: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/django/contrib/auth/models.py:151: in create_user return self._create_user(username, email, password, **extra_fields) .tox/py3/lib/python3.7/site-packages/django/contrib/auth/models.py:145: in _create_user user.save(using=self._db) .tox/py3/lib/python3.7/site-packages/django/contrib/auth/base_user.py:66: in save super().save(*args, **kwargs) .tox/py3/lib/python3.7/site-packages/django/db/models/base.py:744: in save force_update=force_update, update_fields=update_fields) .tox/py3/lib/python3.7/site-packages/django/db/models/base.py:782: in save_base force_update, using, update_fields, .tox/py3/lib/python3.7/site-packages/django/db/models/base.py:873: in _save_table result = self._do_insert(cls._base_manager, using, fields, update_pk, raw) .tox/py3/lib/python3.7/site-packages/django/db/models/base.py:911: in _do_insert using=using, raw=raw) .tox/py3/lib/python3.7/site-packages/django/db/models/manager.py:82: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) .tox/py3/lib/python3.7/site-packages/django/db/models/query.py:1186: in _insert return query.get_compiler(using=using).execute_sql(return_id) .tox/py3/lib/python3.7/site-packages/django/db/models/sql/compiler.py:1377: in execute_sql cursor.execute(sql, params) .tox/py3/lib/python3.7/site-packages/django/db/backends/utils.py:67: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) .tox/py3/lib/python3.7/site-packages/django/db/backends/utils.py:76: in _execute_with_wrappers return executor(sql, params, many, context) .tox/py3/lib/python3.7/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) .tox/py3/lib/python3.7/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 0x7fea6fdd13c8> sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"' params = ('pbkdf2_sha256$150000$j7R68lawmM5t$oSMcWFYnDp9fWsHoUTuwzgaNngrUbX5dIRiEUrhPwvo=', None, False, 'mailmap-user', '', '', ...) ignored_wrapper_args = (False, {'connection': <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7fea78b10ef0>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7fea6fdd13c8>}) 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 "auth_user" does not exist E LINE 1: INSERT INTO "auth_user" ("password", "last_login", "is_super... E ^ .tox/py3/lib/python3.7/site-packages/django/db/backends/utils.py:84: ProgrammingError