Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alisonamerico/4690ca12221b909550c068a37e61c40c to your computer and use it in GitHub Desktop.
Save alisonamerico/4690ca12221b909550c068a37e61c40c to your computer and use it in GitHub Desktop.
erro_test_travis
Worker information
hostname: 33a44394-b825-46d3-a46f-7172b293146b@1.production-1-worker-org-gce-6qn1
version: v6.2.0 https://github.com/travis-ci/worker/tree/5e5476e01646095f48eec13196fdb3faf8f5cbf7
instance: travis-job-58e433af-9f7f-4e62-bebc-63ff6342e308 travis-ci-sardonyx-xenial-1547455603-2c98a19 (via amqp)
startup: 6.583630389s
system_info
Build system information
Build language: python
Build group: stable
Build dist: xenial
Build id: 502881480
Job id: 502881481
Runtime kernel version: 4.15.0-1026-gcp
travis-build version: 3fc59daaf
Build image provisioning date and time
Mon Jan 14 09:10:34 UTC 2019
Operating System Details
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
Systemd Version
systemd 229
Cookbooks Version
f9b6c9e https://github.com/travis-ci/travis-cookbooks/tree/f9b6c9e
git version
git version 2.20.1
bash version
GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu)
gcc version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609
docker version
Client:
Version: 18.06.0-ce
API version: 1.38
Go version: go1.10.3
Git commit: 0ffa825
Built: Wed Jul 18 19:11:02 2018
OS/Arch: linux/amd64
Experimental: false
Server:
Engine:
Version: 18.06.0-ce
API version: 1.38 (minimum version 1.12)
Go version: go1.10.3
Git commit: 0ffa825
Built: Wed Jul 18 19:09:05 2018
OS/Arch: linux/amd64
Experimental: false
clang version
clang version 7.0.0 (tags/RELEASE_700/final)
jq version
jq-1.5
bats version
Bats 0.4.0
shellcheck version
0.6.0
shfmt version
v2.6.2
ccache version
3.2.4
cmake version
cmake version 3.12.4
heroku version
heroku/7.19.4 linux-x64 node-v11.3.0
imagemagick version
Version: ImageMagick 6.8.9-9 Q16 x86_64 2018-09-28 http://www.imagemagick.org
md5deep version
4.4
mercurial version
version 4.8
mysql version
mysql Ver 14.14 Distrib 5.7.24, for Linux (x86_64) using EditLine wrapper
openssl version
OpenSSL 1.0.2g 1 Mar 2016
packer version
1.3.3
postgresql client version
psql (PostgreSQL) 10.6 (Ubuntu 10.6-1.pgdg16.04+1)
ragel version
Ragel State Machine Compiler version 6.8 Feb 2013
sudo version
1.8.16
gzip version
gzip 1.6
zip version
Zip 3.0
vim version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:44:48)
iptables version
iptables v1.6.0
curl version
curl 7.47.0 (x86_64-pc-linux-gnu) libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3
wget version
GNU Wget 1.17.1 built on linux-gnu.
rsync version
rsync version 3.1.1 protocol version 31
gimme version
v1.5.3
nvm version
0.34.0
perlbrew version
/home/travis/perl5/perlbrew/bin/perlbrew - App::perlbrew/0.85
phpenv version
rbenv 1.1.1-39-g59785f6
rvm version
rvm 1.29.7 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
default ruby version
ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]
CouchDB version
couchdb 1.6.1
ElasticSearch version
5.5.0
Installed Firefox version
firefox 63.0.1
MongoDB version
MongoDB 4.0.5
PhantomJS version
2.1.1
Pre-installed PostgreSQL versions
9.4.20
9.5.15
9.6.11
Redis version
redis-server 5.0.3
Pre-installed Go versions
1.11.1
mvn version
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
gradle version
Gradle 4.10.2!
lein version
Leiningen 2.8.3 on Java 11.0.1 OpenJDK 64-Bit Server VM
Pre-installed Node.js versions
v10.15.0
v11.0.0
v4.9.1
v6.16.0
v8.12.0
v8.15.0
v8.9
phpenv versions
system
5.6
5.6.36
7.1.19
* 7.2.7 (set by /home/travis/.phpenv/version)
hhvm
hhvm-stable
composer --version
Composer version 1.8.0 2018-12-03 10:31:16
Pre-installed Ruby versions
ruby-2.3.8
ruby-2.4.5
ruby-2.5.3
services
postgresql
3.38s$ travis_setup_postgresql 9.5
Starting PostgreSQL v9.5
sudo systemctl start postgresql@9.5-main
git.checkout
0.50s$ git clone --depth=50 https://github.com/alisonamerico/planilha-de-contas.git alisonamerico/planilha-de-contas
Cloning into 'alisonamerico/planilha-de-contas'...
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 213 (delta 0), reused 1 (delta 0), pack-reused 207
Receiving objects: 100% (213/213), 49.06 KiB | 1.96 MiB/s, done.
Resolving deltas: 100% (119/119), done.
$ cd alisonamerico/planilha-de-contas
0.39s$ git fetch origin +refs/pull/63/merge:
remote: Enumerating objects: 30, done.
remote: Counting objects: 100% (25/25), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 14 (delta 10), reused 9 (delta 7), pack-reused 0
Unpacking objects: 100% (14/14), done.
From https://github.com/alisonamerico/planilha-de-contas
* branch refs/pull/63/merge -> FETCH_HEAD
$ git checkout -qf FETCH_HEAD
Setting environment variables from .travis.yml
$ export PIPENV_VENV_IN_PROJECT=1
$ export PIPENV_IGNORE_VIRTUALENVS=1
0.01s$ source ~/virtualenv/python3.7/bin/activate
$ python --version
Python 3.7.1
$ pip --version
pip 18.1 from /home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/pip (python 3.7)
install.1
0.55s$ pip install pipenv
Requirement already satisfied: pipenv in /home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages (2018.11.26)
Requirement already satisfied: virtualenv in /home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages (from pipenv) (16.1.0)
Requirement already satisfied: virtualenv-clone>=0.2.5 in /home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages (from pipenv) (0.4.0)
Requirement already satisfied: pip>=9.0.1 in /home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages (from pipenv) (18.1)
Requirement already satisfied: certifi in /home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages (from pipenv) (2018.11.29)
Requirement already satisfied: setuptools>=36.2.1 in /home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages (from pipenv) (40.6.3)
install.2
27.52s$ pipenv sync -d
Creating a virtualenv for this project…
Pipfile: /home/travis/build/alisonamerico/planilha-de-contas/Pipfile
Using /home/travis/virtualenv/python3.7.1/bin/python3 (3.7.1) to create virtualenv…
Using real prefix '/opt/python/3.7.1'
New python executable in /home/travis/build/alisonamerico/planilha-de-contas/.venv/bin/python3
Also creating executable in /home/travis/build/alisonamerico/planilha-de-contas/.venv/bin/python
Overwriting /home/travis/build/alisonamerico/planilha-de-contas/.venv/lib/python3.7/distutils/__init__.py with new content
Installing setuptools, pip, wheel...
done.
Running virtualenv with interpreter /home/travis/virtualenv/python3.7.1/bin/python3
Virtualenv location: /home/travis/build/alisonamerico/planilha-de-contas/.venv
Installing dependencies from Pipfile.lock (a23d5c)…
================================ 32/32 — 00:00:21
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
All dependencies are now up-to-date!
install.3
0.00s$ cp contrib/env-sample .env
before_script
0.22s$ psql -c "CREATE DATABASE testdb;" -U postgres
CREATE DATABASE
0.73s$ pipenv run flake8 .
Loading .env environment variables…
The command "pipenv run flake8 ." exited with 0.
3.65s$ pipenv run pytest --cov=celero
Loading .env environment variables…
============================= test session starts ==============================
platform linux -- Python 3.7.1, pytest-4.3.0, py-1.8.0, pluggy-0.9.0
Django settings: celero.settings (from ini file)
rootdir: /home/travis/build/alisonamerico/planilha-de-contas, inifile: pytest.ini
plugins: django-3.4.8, cov-2.6.1
collected 10 items
celero/api/tests/test_app.py . [ 10%]
celero/api/tests/test_home.py . [ 20%]
celero/api/tests/test_login.py EEEEE [ 70%]
celero/tests/test_urls.py . [ 80%]
celero/tests/test_wsgi.py .. [100%]
==================================== ERRORS ====================================
______________________ ERROR at setup of test_status_code ______________________
self = <django.db.backends.utils.CursorWrapper object at 0x7f169779df98>
sql = 'ALTER TABLE "api_contabilidade" ADD COLUMN "controle" varchar(10) DEFAULT %s NOT NULL'
params = ['2019-03-07 02:16:26.829058+00:00']
ignored_wrapper_args = (False, {'connection': <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f169b350518>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7f169779df98>})
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.DataError: value too long for type character varying(10)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:85: DataError
The above exception was the direct cause of the following exception:
request = <SubRequest 'django_db_setup' for <Function test_status_code>>
django_test_environment = None
django_db_blocker = <pytest_django.plugin._DatabaseBlocker object at 0x7f169d012320>
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=request.config.option.verbose,
interactive=False,
> **setup_databases_args
)
.venv/lib/python3.7/site-packages/pytest_django/fixtures.py:108:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.venv/lib/python3.7/site-packages/django/test/utils.py:174: in setup_databases
serialize=connection.settings_dict.get('TEST', {}).get('SERIALIZE', True),
.venv/lib/python3.7/site-packages/django/db/backends/base/creation.py:68: in create_test_db
run_syncdb=True,
.venv/lib/python3.7/site-packages/django/core/management/__init__.py:148: in call_command
return command.execute(*args, **defaults)
.venv/lib/python3.7/site-packages/django/core/management/base.py:353: in execute
output = self.handle(*args, **options)
.venv/lib/python3.7/site-packages/django/core/management/base.py:83: in wrapped
res = handle_func(*args, **kwargs)
.venv/lib/python3.7/site-packages/django/core/management/commands/migrate.py:203: in handle
fake_initial=fake_initial,
.venv/lib/python3.7/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)
.venv/lib/python3.7/site-packages/django/db/migrations/executor.py:147: in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
.venv/lib/python3.7/site-packages/django/db/migrations/executor.py:244: in apply_migration
state = migration.apply(state, schema_editor)
.venv/lib/python3.7/site-packages/django/db/migrations/migration.py:124: in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
.venv/lib/python3.7/site-packages/django/db/migrations/operations/fields.py:84: in database_forwards
field,
.venv/lib/python3.7/site-packages/django/db/backends/base/schema.py:435: in add_field
self.execute(sql, params)
.venv/lib/python3.7/site-packages/django/db/backends/base/schema.py:133: in execute
cursor.execute(sql, params)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:68: in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:77: in _execute_with_wrappers
return executor(sql, params, many, context)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:85: in _execute
return self.cursor.execute(sql, params)
.venv/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 0x7f169779df98>
sql = 'ALTER TABLE "api_contabilidade" ADD COLUMN "controle" varchar(10) DEFAULT %s NOT NULL'
params = ['2019-03-07 02:16:26.829058+00:00']
ignored_wrapper_args = (False, {'connection': <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f169b350518>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7f169779df98>})
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.DataError: value too long for type character varying(10)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:85: DataError
__________________ ERROR at setup of test_page_content[<form] __________________
self = <django.db.backends.utils.CursorWrapper object at 0x7f169779df98>
sql = 'ALTER TABLE "api_contabilidade" ADD COLUMN "controle" varchar(10) DEFAULT %s NOT NULL'
params = ['2019-03-07 02:16:26.829058+00:00']
ignored_wrapper_args = (False, {'connection': <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f169b350518>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7f169779df98>})
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.DataError: value too long for type character varying(10)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:85: DataError
The above exception was the direct cause of the following exception:
tp = <class 'django.db.utils.DataError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.venv/lib/python3.7/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.venv/lib/python3.7/site-packages/pytest_django/fixtures.py:108: in django_db_setup
**setup_databases_args
.venv/lib/python3.7/site-packages/django/test/utils.py:174: in setup_databases
serialize=connection.settings_dict.get('TEST', {}).get('SERIALIZE', True),
.venv/lib/python3.7/site-packages/django/db/backends/base/creation.py:68: in create_test_db
run_syncdb=True,
.venv/lib/python3.7/site-packages/django/core/management/__init__.py:148: in call_command
return command.execute(*args, **defaults)
.venv/lib/python3.7/site-packages/django/core/management/base.py:353: in execute
output = self.handle(*args, **options)
.venv/lib/python3.7/site-packages/django/core/management/base.py:83: in wrapped
res = handle_func(*args, **kwargs)
.venv/lib/python3.7/site-packages/django/core/management/commands/migrate.py:203: in handle
fake_initial=fake_initial,
.venv/lib/python3.7/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)
.venv/lib/python3.7/site-packages/django/db/migrations/executor.py:147: in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
.venv/lib/python3.7/site-packages/django/db/migrations/executor.py:244: in apply_migration
state = migration.apply(state, schema_editor)
.venv/lib/python3.7/site-packages/django/db/migrations/migration.py:124: in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
.venv/lib/python3.7/site-packages/django/db/migrations/operations/fields.py:84: in database_forwards
field,
.venv/lib/python3.7/site-packages/django/db/backends/base/schema.py:435: in add_field
self.execute(sql, params)
.venv/lib/python3.7/site-packages/django/db/backends/base/schema.py:133: in execute
cursor.execute(sql, params)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:68: in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:77: in _execute_with_wrappers
return executor(sql, params, many, context)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:85: in _execute
return self.cursor.execute(sql, params)
.venv/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 0x7f169779df98>
sql = 'ALTER TABLE "api_contabilidade" ADD COLUMN "controle" varchar(10) DEFAULT %s NOT NULL'
params = ['2019-03-07 02:16:26.829058+00:00']
ignored_wrapper_args = (False, {'connection': <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f169b350518>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7f169779df98>})
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.DataError: value too long for type character varying(10)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:85: DataError
___ ERROR at setup of test_page_content[<input type="text" name="username"] ____
self = <django.db.backends.utils.CursorWrapper object at 0x7f169779df98>
sql = 'ALTER TABLE "api_contabilidade" ADD COLUMN "controle" varchar(10) DEFAULT %s NOT NULL'
params = ['2019-03-07 02:16:26.829058+00:00']
ignored_wrapper_args = (False, {'connection': <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f169b350518>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7f169779df98>})
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.DataError: value too long for type character varying(10)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:85: DataError
The above exception was the direct cause of the following exception:
tp = <class 'django.db.utils.DataError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.venv/lib/python3.7/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.venv/lib/python3.7/site-packages/pytest_django/fixtures.py:108: in django_db_setup
**setup_databases_args
.venv/lib/python3.7/site-packages/django/test/utils.py:174: in setup_databases
serialize=connection.settings_dict.get('TEST', {}).get('SERIALIZE', True),
.venv/lib/python3.7/site-packages/django/db/backends/base/creation.py:68: in create_test_db
run_syncdb=True,
.venv/lib/python3.7/site-packages/django/core/management/__init__.py:148: in call_command
return command.execute(*args, **defaults)
.venv/lib/python3.7/site-packages/django/core/management/base.py:353: in execute
output = self.handle(*args, **options)
.venv/lib/python3.7/site-packages/django/core/management/base.py:83: in wrapped
res = handle_func(*args, **kwargs)
.venv/lib/python3.7/site-packages/django/core/management/commands/migrate.py:203: in handle
fake_initial=fake_initial,
.venv/lib/python3.7/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)
.venv/lib/python3.7/site-packages/django/db/migrations/executor.py:147: in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
.venv/lib/python3.7/site-packages/django/db/migrations/executor.py:244: in apply_migration
state = migration.apply(state, schema_editor)
.venv/lib/python3.7/site-packages/django/db/migrations/migration.py:124: in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
.venv/lib/python3.7/site-packages/django/db/migrations/operations/fields.py:84: in database_forwards
field,
.venv/lib/python3.7/site-packages/django/db/backends/base/schema.py:435: in add_field
self.execute(sql, params)
.venv/lib/python3.7/site-packages/django/db/backends/base/schema.py:133: in execute
cursor.execute(sql, params)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:68: in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:77: in _execute_with_wrappers
return executor(sql, params, many, context)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:85: in _execute
return self.cursor.execute(sql, params)
.venv/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 0x7f169779df98>
sql = 'ALTER TABLE "api_contabilidade" ADD COLUMN "controle" varchar(10) DEFAULT %s NOT NULL'
params = ['2019-03-07 02:16:26.829058+00:00']
ignored_wrapper_args = (False, {'connection': <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f169b350518>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7f169779df98>})
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.DataError: value too long for type character varying(10)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:85: DataError
_ ERROR at setup of test_page_content[<input type="password" name="password"] __
self = <django.db.backends.utils.CursorWrapper object at 0x7f169779df98>
sql = 'ALTER TABLE "api_contabilidade" ADD COLUMN "controle" varchar(10) DEFAULT %s NOT NULL'
params = ['2019-03-07 02:16:26.829058+00:00']
ignored_wrapper_args = (False, {'connection': <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f169b350518>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7f169779df98>})
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.DataError: value too long for type character varying(10)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:85: DataError
The above exception was the direct cause of the following exception:
tp = <class 'django.db.utils.DataError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.venv/lib/python3.7/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.venv/lib/python3.7/site-packages/pytest_django/fixtures.py:108: in django_db_setup
**setup_databases_args
.venv/lib/python3.7/site-packages/django/test/utils.py:174: in setup_databases
serialize=connection.settings_dict.get('TEST', {}).get('SERIALIZE', True),
.venv/lib/python3.7/site-packages/django/db/backends/base/creation.py:68: in create_test_db
run_syncdb=True,
.venv/lib/python3.7/site-packages/django/core/management/__init__.py:148: in call_command
return command.execute(*args, **defaults)
.venv/lib/python3.7/site-packages/django/core/management/base.py:353: in execute
output = self.handle(*args, **options)
.venv/lib/python3.7/site-packages/django/core/management/base.py:83: in wrapped
res = handle_func(*args, **kwargs)
.venv/lib/python3.7/site-packages/django/core/management/commands/migrate.py:203: in handle
fake_initial=fake_initial,
.venv/lib/python3.7/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)
.venv/lib/python3.7/site-packages/django/db/migrations/executor.py:147: in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
.venv/lib/python3.7/site-packages/django/db/migrations/executor.py:244: in apply_migration
state = migration.apply(state, schema_editor)
.venv/lib/python3.7/site-packages/django/db/migrations/migration.py:124: in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
.venv/lib/python3.7/site-packages/django/db/migrations/operations/fields.py:84: in database_forwards
field,
.venv/lib/python3.7/site-packages/django/db/backends/base/schema.py:435: in add_field
self.execute(sql, params)
.venv/lib/python3.7/site-packages/django/db/backends/base/schema.py:133: in execute
cursor.execute(sql, params)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:68: in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:77: in _execute_with_wrappers
return executor(sql, params, many, context)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:85: in _execute
return self.cursor.execute(sql, params)
.venv/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 0x7f169779df98>
sql = 'ALTER TABLE "api_contabilidade" ADD COLUMN "controle" varchar(10) DEFAULT %s NOT NULL'
params = ['2019-03-07 02:16:26.829058+00:00']
ignored_wrapper_args = (False, {'connection': <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f169b350518>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7f169779df98>})
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.DataError: value too long for type character varying(10)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:85: DataError
______________ ERROR at setup of test_page_content[type="submit"] ______________
self = <django.db.backends.utils.CursorWrapper object at 0x7f169779df98>
sql = 'ALTER TABLE "api_contabilidade" ADD COLUMN "controle" varchar(10) DEFAULT %s NOT NULL'
params = ['2019-03-07 02:16:26.829058+00:00']
ignored_wrapper_args = (False, {'connection': <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f169b350518>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7f169779df98>})
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.DataError: value too long for type character varying(10)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:85: DataError
The above exception was the direct cause of the following exception:
tp = <class 'django.db.utils.DataError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.venv/lib/python3.7/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.venv/lib/python3.7/site-packages/pytest_django/fixtures.py:108: in django_db_setup
**setup_databases_args
.venv/lib/python3.7/site-packages/django/test/utils.py:174: in setup_databases
serialize=connection.settings_dict.get('TEST', {}).get('SERIALIZE', True),
.venv/lib/python3.7/site-packages/django/db/backends/base/creation.py:68: in create_test_db
run_syncdb=True,
.venv/lib/python3.7/site-packages/django/core/management/__init__.py:148: in call_command
return command.execute(*args, **defaults)
.venv/lib/python3.7/site-packages/django/core/management/base.py:353: in execute
output = self.handle(*args, **options)
.venv/lib/python3.7/site-packages/django/core/management/base.py:83: in wrapped
res = handle_func(*args, **kwargs)
.venv/lib/python3.7/site-packages/django/core/management/commands/migrate.py:203: in handle
fake_initial=fake_initial,
.venv/lib/python3.7/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)
.venv/lib/python3.7/site-packages/django/db/migrations/executor.py:147: in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
.venv/lib/python3.7/site-packages/django/db/migrations/executor.py:244: in apply_migration
state = migration.apply(state, schema_editor)
.venv/lib/python3.7/site-packages/django/db/migrations/migration.py:124: in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
.venv/lib/python3.7/site-packages/django/db/migrations/operations/fields.py:84: in database_forwards
field,
.venv/lib/python3.7/site-packages/django/db/backends/base/schema.py:435: in add_field
self.execute(sql, params)
.venv/lib/python3.7/site-packages/django/db/backends/base/schema.py:133: in execute
cursor.execute(sql, params)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:68: in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:77: in _execute_with_wrappers
return executor(sql, params, many, context)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:85: in _execute
return self.cursor.execute(sql, params)
.venv/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 0x7f169779df98>
sql = 'ALTER TABLE "api_contabilidade" ADD COLUMN "controle" varchar(10) DEFAULT %s NOT NULL'
params = ['2019-03-07 02:16:26.829058+00:00']
ignored_wrapper_args = (False, {'connection': <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f169b350518>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7f169779df98>})
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.DataError: value too long for type character varying(10)
.venv/lib/python3.7/site-packages/django/db/backends/utils.py:85: DataError
=============================== warnings summary ===============================
celero/urls.py:24
/home/travis/build/alisonamerico/planilha-de-contas/celero/urls.py:24: RemovedInDRF311Warning: The `base_name` argument is pending deprecation in favor of `basename`.
router.register('api/v1/lista', ContabilidadeViewSet, base_name='contabilidade')
-- Docs: https://docs.pytest.org/en/latest/warnings.html
----------- coverage: platform linux, python 3.7.1-final-0 -----------
Name Stmts Miss Cover
--------------------------------------------------------------------------
celero/__init__.py 0 0 100%
celero/api/__init__.py 0 0 100%
celero/api/admin.py 50 0 100%
celero/api/apps.py 3 0 100%
celero/api/migrations/0001_initial.py 0 0 100%
celero/api/migrations/0002_contabilidade.py 0 0 100%
celero/api/migrations/0003_auto_20190303_1147.py 5 0 100%
celero/api/migrations/0004_contabilidade_controle.py 5 0 100%
celero/api/migrations/__init__.py 0 0 100%
celero/api/models.py 40 0 100%
celero/api/serializers.py 6 0 100%
celero/api/tests.py 0 0 100%
celero/api/tests/__init__.py 0 0 100%
celero/api/tests/test_app.py 3 0 100%
celero/api/tests/test_home.py 11 0 100%
celero/api/tests/test_login.py 9 4 56%
celero/api/views.py 13 0 100%
celero/settings.py 26 0 100%
celero/tests/__init__.py 0 0 100%
celero/tests/test_urls.py 3 0 100%
celero/tests/test_wsgi.py 7 0 100%
celero/urls.py 7 0 100%
celero/wsgi.py 0 0 100%
--------------------------------------------------------------------------
TOTAL 188 4 98%
================ 5 passed, 1 warnings, 5 error in 2.26 seconds =================
The command "pipenv run pytest --cov=celero" exited with 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment