avatar
Untitled

Guest 73 7th Jan, 2020

MARKUP 9.49 KB
                                           
                         No handlers could be found for logger "sileo.registration"
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
null value in column "action_id" violates not-null constraint
DETAIL:  Failing row contains (1, null, null, f, f, /ministry/applicant-interviews/, 2020-01-07 01:14:59.575081+00, , f).

Enull value in column "action_id" violates not-null constraint
DETAIL:  Failing row contains (2, null, null, f, f, /ministry/applicant-interviews/, 2020-01-07 01:14:59.628233+00, , f).

E
======================================================================
ERROR: test_field_types (applybpo.tests.test_api_sileo.test_base.test_recording.BaseRecordingResourceTestCase)
Test to verify types of each resolved fields
----------------------------------------------------------------------
Traceback (most recent call last):
  File "src/bposeats/centralbpo/site/tests/test_api_sileo/resource_resolver.py", line 67, in test_field_types
    if fields is None or self.get_instance() is None:
  File "src/bposeats/applybpo/tests/test_api_sileo/test_base/test_recording.py", line 26, in get_instance
    return RecordingFactory()
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/factory/base.py", line 46, in __call__
    return cls.create(**kwargs)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/factory/base.py", line 564, in create
    return cls._generate(enums.CREATE_STRATEGY, kwargs)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/factory/django.py", line 141, in _generate
    return super(DjangoModelFactory, cls)._generate(strategy, params)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/factory/base.py", line 501, in _generate
    return step.build()
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/factory/builder.py", line 279, in build
    kwargs=kwargs,
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/factory/base.py", line 315, in instantiate
    return self.factory._create(model, *args, **kwargs)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/factory/django.py", line 185, in _create
    return manager.create(*args, **kwargs)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 394, in create
    obj.save(force_insert=True, using=self.db)
  File "src/bposeats/applybpo/models/recording.py", line 69, in save
    super(Recording, self).save(*args, **kwargs)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/django/db/models/base.py", line 808, in save
    force_update=force_update, update_fields=update_fields)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/django/db/models/base.py", line 838, in save_base
    updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/django/db/models/base.py", line 924, in _save_table
    result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/django/db/models/base.py", line 963, in _do_insert
    using=using, raw=raw)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 1079, in _insert
    return query.get_compiler(using=using).execute_sql(return_id)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 1112, in execute_sql
    cursor.execute(sql, params)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 59, in execute
    self.db.validate_no_broken_transaction()
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 448, in validate_no_broken_transaction
    "An error occurred in the current transaction. You can't "
TransactionManagementError: An error occurred in the current transaction. You can't execute queries until the end of the 'atomic' block.

======================================================================
ERROR: test_resolving_fields (applybpo.tests.test_api_sileo.test_base.test_recording.BaseRecordingResourceTestCase)
Test to call resolve fields to test if the specified fields in the
----------------------------------------------------------------------
Traceback (most recent call last):
  File "src/bposeats/centralbpo/site/tests/test_api_sileo/resource_resolver.py", line 61, in test_resolving_fields
    resolved_fields = self.resolve()
  File "src/bposeats/centralbpo/site/tests/test_api_sileo/resource_resolver.py", line 55, in resolve
    instance = self.get_instance()
  File "src/bposeats/applybpo/tests/test_api_sileo/test_base/test_recording.py", line 26, in get_instance
    return RecordingFactory()
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/factory/base.py", line 46, in __call__
    return cls.create(**kwargs)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/factory/base.py", line 564, in create
    return cls._generate(enums.CREATE_STRATEGY, kwargs)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/factory/django.py", line 141, in _generate
    return super(DjangoModelFactory, cls)._generate(strategy, params)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/factory/base.py", line 501, in _generate
    return step.build()
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/factory/builder.py", line 279, in build
    kwargs=kwargs,
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/factory/base.py", line 315, in instantiate
    return self.factory._create(model, *args, **kwargs)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/factory/django.py", line 185, in _create
    return manager.create(*args, **kwargs)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 394, in create
    obj.save(force_insert=True, using=self.db)
  File "src/bposeats/applybpo/models/recording.py", line 69, in save
    super(Recording, self).save(*args, **kwargs)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/django/db/models/base.py", line 808, in save
    force_update=force_update, update_fields=update_fields)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/django/db/models/base.py", line 838, in save_base
    updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/django/db/models/base.py", line 924, in _save_table
    result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/django/db/models/base.py", line 963, in _do_insert
    using=using, raw=raw)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 1079, in _insert
    return query.get_compiler(using=using).execute_sql(return_id)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 1112, in execute_sql
    cursor.execute(sql, params)
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 59, in execute
    self.db.validate_no_broken_transaction()
  File "/home/katraganas/buildout-next/venv/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 448, in validate_no_broken_transaction
    "An error occurred in the current transaction. You can't "
TransactionManagementError: An error occurred in the current transaction. You can't execute queries until the end of the 'atomic' block.
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data

Comments

Authentication required

You must log in to post a comment.

Log in
    There are no comments yet.