Skip to content

Instantly share code, notes, and snippets.

@ba11b0y
Created October 3, 2017 17:19
Show Gist options
  • Save ba11b0y/2c0b61b11858d18712f9fc1da23a9368 to your computer and use it in GitHub Desktop.
Save ba11b0y/2c0b61b11858d18712f9fc1da23a9368 to your computer and use it in GitHub Desktop.
test_errors
invinciblycool@invinciblycool-machine:~/FOSSASIA/open-event-orga-server$ nosetests tests/unittests/
FEFEEFEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
======================================================================
ERROR: test_get_count (tests.unittests.api.helpers.test_db.TestDBHelperValidation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured logging << --------------------
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Reading environment variables from: /home/invinciblycool/FOSSASIA/open-event-orga-server/.env
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Get 'SERVER_NAME' casted as 'None'/'None' with default 'None'
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Get 'DATABASE_URL' casted as 'None'/'None' with default 'None'
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Get 'SERVE_STATIC' casted as '<type 'bool'>'/'None' with default 'False'
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Get 'SENTRY_DSN' casted as 'None'/'None' with default 'None'
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Get 'ENABLE_ELASTICSEARCH' casted as '<type 'bool'>'/'None' with default 'False'
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Get 'ELASTICSEARCH_HOST' casted as 'None'/'None' with default 'localhost:9200'
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Get 'REDIS_URL' casted as 'None'/'None' with default 'redis://localhost:6379/0'
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Get 'PROPOGATE_ERROR' casted as '<type 'bool'>'/'None' with default 'False'
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Get 'API_PROPOGATE_UNCAUGHT_EXCEPTIONS' casted as '<type 'bool'>'/'None' with default 'True'
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Get 'TEST_DATABASE_URL' casted as 'None'/'None' with default 'None'
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: envfile not found at /home/invinciblycool/FOSSASIA/open-event-orga-server/app/.env, looking in parent dir.
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Reading environment variables from: /home/invinciblycool/FOSSASIA/open-event-orga-server/.env
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Get 'APP_CONFIG' casted as 'None'/'None' with default 'config.ProductionConfig'
raven.base.Client: DEBUG: Configuring Raven for host: <raven.conf.remote.RemoteConfig object at 0x7f5fa6b3fe90>
raven.base.Client: INFO: Raven is not configured (logging is disabled). Please see the documentation for more information.
apscheduler.scheduler: INFO: Adding job tentatively -- it will be properly scheduled when the scheduler starts
apscheduler.scheduler: INFO: Adding job tentatively -- it will be properly scheduled when the scheduler starts
apscheduler.scheduler: INFO: Adding job tentatively -- it will be properly scheduled when the scheduler starts
apscheduler.scheduler: INFO: Added job "send_after_event_mail" to job store "default"
apscheduler.scheduler: INFO: Added job "send_event_fee_notification" to job store "default"
apscheduler.scheduler: INFO: Added job "send_event_fee_notification_followup" to job store "default"
apscheduler.scheduler: INFO: Scheduler started
apscheduler.scheduler: DEBUG: Looking for jobs to run
apscheduler.scheduler: DEBUG: Next wakeup is due at 2017-10-04 05:30:00+00:00 (in 44011.040664 seconds)
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=0
factory.generate: DEBUG: RelatedFactory: Generating app.factories.event.EventFactoryBasic(<factory.builder.BuildStep object at 0x7f5fa5f81950>)
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=0
root: INFO: Saved to db
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_get_or_create (tests.unittests.api.helpers.test_db.TestDBHelperValidation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=1
root: INFO: Saved to db
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_safe_query (tests.unittests.api.helpers.test_db.TestDBHelperValidation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=2
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_safe_query_exception (tests.unittests.api.helpers.test_db.TestDBHelperValidation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_save_to_db (tests.unittests.api.helpers.test_db.TestDBHelperValidation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=3
root: INFO: Saved to db
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_errors (tests.unittests.api.helpers.test_errors.TestErrorsHelperValidation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_exceptions (tests.unittests.api.helpers.test_exceptions.TestExceptionsHelperValidation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_create_save_image_sizes (tests.unittests.api.helpers.test_files.TestFilesHelperValidation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_create_save_resized_image (tests.unittests.api.helpers.test_files.TestFilesHelperValidation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_upload_multiple_file (tests.unittests.api.helpers.test_files.TestFilesHelperValidation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_upload_single_file (tests.unittests.api.helpers.test_files.TestFilesHelperValidation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_uploaded_image_local (tests.unittests.api.helpers.test_files.TestFilesHelperValidation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_get_identity (tests.unittests.api.helpers.test_jwt.TestJWTHelperValidation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/api/helpers/test_jwt.py", line 35, in test_get_identity
db.session.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/scoping.py", line 157, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 906, in commit
self.transaction.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 461, in commit
self._prepare_impl()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 441, in _prepare_impl
self.session.flush()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2177, in flush
self._flush(objects)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2297, in _flush
transaction.rollback(_capture_exception=True)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2261, in _flush
flush_context.execute()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 389, in execute
rec.execute(self)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 548, in execute
uow
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 181, in save_obj
mapper, table, insert)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 835, in _emit_insert_statements
execute(statement, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 945, in execute
return meth(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 263, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1053, in _execute_clauseelement
compiled_sql, distilled_params
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint "users__email_key"
DETAIL: Key (_email)=([email protected]) already exists.
[SQL: 'INSERT INTO users (_email, _password, reset_password, salt, avatar_url, tokens, first_name, last_name, details, contact, facebook_url, twitter_url, instagram_url, google_plus_url, original_image_url, thumbnail_image_url, small_image_url, icon_image_url, is_super_admin, is_admin, is_verified, last_accessed_at, created_at, deleted_at) VALUES (%(_email)s, %(_password)s, %(reset_password)s, %(salt)s, %(avatar_url)s, %(tokens)s, %(first_name)s, %(last_name)s, %(details)s, %(contact)s, %(facebook_url)s, %(twitter_url)s, %(instagram_url)s, %(google_plus_url)s, %(original_image_url)s, %(thumbnail_image_url)s, %(small_image_url)s, %(icon_image_url)s, %(is_super_admin)s, %(is_admin)s, %(is_verified)s, %(last_accessed_at)s, %(created_at)s, %(deleted_at)s) RETURNING users.id'] [parameters: {'last_name': 'Doe', 'is_super_admin': False, 'small_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'deleted_at': None, 'google_plus_url': 'https://plus.google.com/plus.google', 'first_name': 'John', 'original_image_url': None, 'avatar_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'icon_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'is_verified': False, 'details': u'example', '_email': '[email protected]', 'twitter_url': 'https://twitter.com/twitter', 'facebook_url': 'https://facebook.com/facebook', 'tokens': None, 'is_admin': True, '_password': 'kAxgJ6hwjHZUF8ZdLENNpE8q2/cMEMp/2ewJe6vo2vGcBGpoNIDhremOdVMa5rsB4yq2Wk6TEuatjjavK3I1mw==', 'instagram_url': 'https://instagram.com/instagram', 'created_at': datetime.datetime(2017, 10, 3, 17, 16, 21, 866865, tzinfo=<UTC>), 'reset_password': '280456667314918132809097606624196879011', 'contact': 'example', 'last_accessed_at': None, 'thumbnail_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'salt': 'TLQJeq6V648dYxfUh7szQeJ//NPYoAQIKgfUHvS9QE3kGRvNqT+C2kB+JeuaAeXn4eOOGtM4udzOPCrH3LibbA=='}]
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=0
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_get_identity (tests.unittests.api.helpers.test_jwt.TestJWTHelperValidation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=0
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_jwt_authenticate (tests.unittests.api.helpers.test_jwt.TestJWTHelperValidation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/api/helpers/test_jwt.py", line 21, in test_jwt_authenticate
db.session.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/scoping.py", line 157, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 906, in commit
self.transaction.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 461, in commit
self._prepare_impl()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 441, in _prepare_impl
self.session.flush()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2177, in flush
self._flush(objects)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2297, in _flush
transaction.rollback(_capture_exception=True)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2261, in _flush
flush_context.execute()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 389, in execute
rec.execute(self)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 548, in execute
uow
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 181, in save_obj
mapper, table, insert)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 835, in _emit_insert_statements
execute(statement, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 945, in execute
return meth(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 263, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1053, in _execute_clauseelement
compiled_sql, distilled_params
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint "users__email_key"
DETAIL: Key (_email)=([email protected]) already exists.
[SQL: 'INSERT INTO users (_email, _password, reset_password, salt, avatar_url, tokens, first_name, last_name, details, contact, facebook_url, twitter_url, instagram_url, google_plus_url, original_image_url, thumbnail_image_url, small_image_url, icon_image_url, is_super_admin, is_admin, is_verified, last_accessed_at, created_at, deleted_at) VALUES (%(_email)s, %(_password)s, %(reset_password)s, %(salt)s, %(avatar_url)s, %(tokens)s, %(first_name)s, %(last_name)s, %(details)s, %(contact)s, %(facebook_url)s, %(twitter_url)s, %(instagram_url)s, %(google_plus_url)s, %(original_image_url)s, %(thumbnail_image_url)s, %(small_image_url)s, %(icon_image_url)s, %(is_super_admin)s, %(is_admin)s, %(is_verified)s, %(last_accessed_at)s, %(created_at)s, %(deleted_at)s) RETURNING users.id'] [parameters: {'last_name': 'Doe', 'is_super_admin': False, 'small_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'deleted_at': None, 'google_plus_url': 'https://plus.google.com/plus.google', 'first_name': 'John', 'original_image_url': None, 'avatar_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'icon_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'is_verified': False, 'details': u'example', '_email': '[email protected]', 'twitter_url': 'https://twitter.com/twitter', 'facebook_url': 'https://facebook.com/facebook', 'tokens': None, 'is_admin': True, '_password': 'FADTd0iMeeCvIHBfn1NAOPZ+9FID7u6Uz+AkOFK+X7/UyLp7ya/fLJeeTkH4+bbmZJ7qEPgZEoIUXv/d5v5joQ==', 'instagram_url': 'https://instagram.com/instagram', 'created_at': datetime.datetime(2017, 10, 3, 17, 16, 21, 866865, tzinfo=<UTC>), 'reset_password': '49949741930498684847673759725201190535', 'contact': 'example', 'last_accessed_at': None, 'thumbnail_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'salt': 'O9KtyxZ7xMgXqJKAcGNfvNevHruQ+4EKhpRE97ccn57OgAMRyJIvm9BzqRAmCXCWktT/Zl/o4k/qaahOECSakQ=='}]
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=1
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_jwt_authenticate (tests.unittests.api.helpers.test_jwt.TestJWTHelperValidation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=1
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_accessible_role_based_events (tests.unittests.api.helpers.test_permission_manager.TestPermissionManager)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/api/helpers/test_permission_manager.py", line 23, in setUp
db.session.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/scoping.py", line 157, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 906, in commit
self.transaction.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 461, in commit
self._prepare_impl()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 441, in _prepare_impl
self.session.flush()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2177, in flush
self._flush(objects)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2297, in _flush
transaction.rollback(_capture_exception=True)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2261, in _flush
flush_context.execute()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 389, in execute
rec.execute(self)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 548, in execute
uow
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 181, in save_obj
mapper, table, insert)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 835, in _emit_insert_statements
execute(statement, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 945, in execute
return meth(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 263, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1053, in _execute_clauseelement
compiled_sql, distilled_params
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint "users__email_key"
DETAIL: Key (_email)=([email protected]) already exists.
[SQL: 'INSERT INTO users (_email, _password, reset_password, salt, avatar_url, tokens, first_name, last_name, details, contact, facebook_url, twitter_url, instagram_url, google_plus_url, original_image_url, thumbnail_image_url, small_image_url, icon_image_url, is_super_admin, is_admin, is_verified, last_accessed_at, created_at, deleted_at) VALUES (%(_email)s, %(_password)s, %(reset_password)s, %(salt)s, %(avatar_url)s, %(tokens)s, %(first_name)s, %(last_name)s, %(details)s, %(contact)s, %(facebook_url)s, %(twitter_url)s, %(instagram_url)s, %(google_plus_url)s, %(original_image_url)s, %(thumbnail_image_url)s, %(small_image_url)s, %(icon_image_url)s, %(is_super_admin)s, %(is_admin)s, %(is_verified)s, %(last_accessed_at)s, %(created_at)s, %(deleted_at)s) RETURNING users.id'] [parameters: {'last_name': 'Doe', 'is_super_admin': False, 'small_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'deleted_at': None, 'google_plus_url': 'https://plus.google.com/plus.google', 'first_name': 'John', 'original_image_url': None, 'avatar_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'icon_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'is_verified': False, 'details': u'example', '_email': '[email protected]', 'twitter_url': 'https://twitter.com/twitter', 'facebook_url': 'https://facebook.com/facebook', 'tokens': None, 'is_admin': True, '_password': 'uwQUmHYFvpQNfLZ7lso5zhh61RDIbTYQnh9rYYvIlQlGR/Prn1xiHFyXi9GVD8FxKgyFPNGfOk4rnXpVSK2u8A==', 'instagram_url': 'https://instagram.com/instagram', 'created_at': datetime.datetime(2017, 10, 3, 17, 16, 21, 866865, tzinfo=<UTC>), 'reset_password': '28985602081952738566466413630461875291', 'contact': 'example', 'last_accessed_at': None, 'thumbnail_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'salt': 'xafi0/J46q0BkhsxesydjKyqdPMOqXrWx9BLLmqMiPY7VPSYIIjcYqDwkfXESyLh5IDI/ncBqKqznmlxw6PkSA=='}]
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=2
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_has_access (tests.unittests.api.helpers.test_permission_manager.TestPermissionManager)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/api/helpers/test_permission_manager.py", line 23, in setUp
db.session.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/scoping.py", line 157, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 906, in commit
self.transaction.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 461, in commit
self._prepare_impl()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 441, in _prepare_impl
self.session.flush()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2177, in flush
self._flush(objects)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2297, in _flush
transaction.rollback(_capture_exception=True)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2261, in _flush
flush_context.execute()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 389, in execute
rec.execute(self)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 548, in execute
uow
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 181, in save_obj
mapper, table, insert)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 835, in _emit_insert_statements
execute(statement, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 945, in execute
return meth(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 263, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1053, in _execute_clauseelement
compiled_sql, distilled_params
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint "users__email_key"
DETAIL: Key (_email)=([email protected]) already exists.
[SQL: 'INSERT INTO users (_email, _password, reset_password, salt, avatar_url, tokens, first_name, last_name, details, contact, facebook_url, twitter_url, instagram_url, google_plus_url, original_image_url, thumbnail_image_url, small_image_url, icon_image_url, is_super_admin, is_admin, is_verified, last_accessed_at, created_at, deleted_at) VALUES (%(_email)s, %(_password)s, %(reset_password)s, %(salt)s, %(avatar_url)s, %(tokens)s, %(first_name)s, %(last_name)s, %(details)s, %(contact)s, %(facebook_url)s, %(twitter_url)s, %(instagram_url)s, %(google_plus_url)s, %(original_image_url)s, %(thumbnail_image_url)s, %(small_image_url)s, %(icon_image_url)s, %(is_super_admin)s, %(is_admin)s, %(is_verified)s, %(last_accessed_at)s, %(created_at)s, %(deleted_at)s) RETURNING users.id'] [parameters: {'last_name': 'Doe', 'is_super_admin': False, 'small_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'deleted_at': None, 'google_plus_url': 'https://plus.google.com/plus.google', 'first_name': 'John', 'original_image_url': None, 'avatar_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'icon_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'is_verified': False, 'details': u'example', '_email': '[email protected]', 'twitter_url': 'https://twitter.com/twitter', 'facebook_url': 'https://facebook.com/facebook', 'tokens': None, 'is_admin': True, '_password': 'w/yYeyPcKtqY25iL53aJ+khs5MM8jTdIzkoiyvCTohckKU1o1Ps+4+ts99SaY0uJcc/Huuh3A4SmV9iaSKRStA==', 'instagram_url': 'https://instagram.com/instagram', 'created_at': datetime.datetime(2017, 10, 3, 17, 16, 21, 866865, tzinfo=<UTC>), 'reset_password': '299879039013526891599240432541656711122', 'contact': 'example', 'last_accessed_at': None, 'thumbnail_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'salt': 'U0HLAoAad8rLinbhsJuiTO6ZgN5JsJQbsjTgsioKiQPvmeGnrRHPrf+YSsZunRGldtT/9fNIP1BZ3mHPYVCpvQ=='}]
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=3
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_is_coorganizer (tests.unittests.api.helpers.test_permission_manager.TestPermissionManager)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/api/helpers/test_permission_manager.py", line 23, in setUp
db.session.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/scoping.py", line 157, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 906, in commit
self.transaction.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 461, in commit
self._prepare_impl()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 441, in _prepare_impl
self.session.flush()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2177, in flush
self._flush(objects)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2297, in _flush
transaction.rollback(_capture_exception=True)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2261, in _flush
flush_context.execute()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 389, in execute
rec.execute(self)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 548, in execute
uow
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 181, in save_obj
mapper, table, insert)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 835, in _emit_insert_statements
execute(statement, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 945, in execute
return meth(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 263, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1053, in _execute_clauseelement
compiled_sql, distilled_params
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint "users__email_key"
DETAIL: Key (_email)=([email protected]) already exists.
[SQL: 'INSERT INTO users (_email, _password, reset_password, salt, avatar_url, tokens, first_name, last_name, details, contact, facebook_url, twitter_url, instagram_url, google_plus_url, original_image_url, thumbnail_image_url, small_image_url, icon_image_url, is_super_admin, is_admin, is_verified, last_accessed_at, created_at, deleted_at) VALUES (%(_email)s, %(_password)s, %(reset_password)s, %(salt)s, %(avatar_url)s, %(tokens)s, %(first_name)s, %(last_name)s, %(details)s, %(contact)s, %(facebook_url)s, %(twitter_url)s, %(instagram_url)s, %(google_plus_url)s, %(original_image_url)s, %(thumbnail_image_url)s, %(small_image_url)s, %(icon_image_url)s, %(is_super_admin)s, %(is_admin)s, %(is_verified)s, %(last_accessed_at)s, %(created_at)s, %(deleted_at)s) RETURNING users.id'] [parameters: {'last_name': 'Doe', 'is_super_admin': False, 'small_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'deleted_at': None, 'google_plus_url': 'https://plus.google.com/plus.google', 'first_name': 'John', 'original_image_url': None, 'avatar_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'icon_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'is_verified': False, 'details': u'example', '_email': '[email protected]', 'twitter_url': 'https://twitter.com/twitter', 'facebook_url': 'https://facebook.com/facebook', 'tokens': None, 'is_admin': True, '_password': 'Svi86q5pIHSsEhXvc/RBVE3+nzKJAN2c+V02nobPfM5Vph5FZCZjVtnDiMJCPfiRPYwMHKk774F113h93pgSig==', 'instagram_url': 'https://instagram.com/instagram', 'created_at': datetime.datetime(2017, 10, 3, 17, 16, 21, 866865, tzinfo=<UTC>), 'reset_password': '238738327965780569852650556457439313065', 'contact': 'example', 'last_accessed_at': None, 'thumbnail_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'salt': 'zG8vl4Bk3FuFPXJCYlWFZL934YMsKlBkU3YS/o8CkUGFU+BPZoV+OA9ZApZIFk2QcnkCfm3l10YssAVKYWN7bw=='}]
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=4
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_is_coorganizer_endpoint_related_to_event (tests.unittests.api.helpers.test_permission_manager.TestPermissionManager)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/api/helpers/test_permission_manager.py", line 23, in setUp
db.session.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/scoping.py", line 157, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 906, in commit
self.transaction.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 461, in commit
self._prepare_impl()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 441, in _prepare_impl
self.session.flush()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2177, in flush
self._flush(objects)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2297, in _flush
transaction.rollback(_capture_exception=True)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2261, in _flush
flush_context.execute()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 389, in execute
rec.execute(self)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 548, in execute
uow
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 181, in save_obj
mapper, table, insert)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 835, in _emit_insert_statements
execute(statement, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 945, in execute
return meth(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 263, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1053, in _execute_clauseelement
compiled_sql, distilled_params
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint "users__email_key"
DETAIL: Key (_email)=([email protected]) already exists.
[SQL: 'INSERT INTO users (_email, _password, reset_password, salt, avatar_url, tokens, first_name, last_name, details, contact, facebook_url, twitter_url, instagram_url, google_plus_url, original_image_url, thumbnail_image_url, small_image_url, icon_image_url, is_super_admin, is_admin, is_verified, last_accessed_at, created_at, deleted_at) VALUES (%(_email)s, %(_password)s, %(reset_password)s, %(salt)s, %(avatar_url)s, %(tokens)s, %(first_name)s, %(last_name)s, %(details)s, %(contact)s, %(facebook_url)s, %(twitter_url)s, %(instagram_url)s, %(google_plus_url)s, %(original_image_url)s, %(thumbnail_image_url)s, %(small_image_url)s, %(icon_image_url)s, %(is_super_admin)s, %(is_admin)s, %(is_verified)s, %(last_accessed_at)s, %(created_at)s, %(deleted_at)s) RETURNING users.id'] [parameters: {'last_name': 'Doe', 'is_super_admin': False, 'small_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'deleted_at': None, 'google_plus_url': 'https://plus.google.com/plus.google', 'first_name': 'John', 'original_image_url': None, 'avatar_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'icon_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'is_verified': False, 'details': u'example', '_email': '[email protected]', 'twitter_url': 'https://twitter.com/twitter', 'facebook_url': 'https://facebook.com/facebook', 'tokens': None, 'is_admin': True, '_password': '/ZyAtkz0YPHmyvkeh37d1u7KcLuJ9Uq9/b2PdR7sg/0c2gQ2eGlT2GDBPcT2KsDAp1l6ETpCRNJ/8N4n3FjNNw==', 'instagram_url': 'https://instagram.com/instagram', 'created_at': datetime.datetime(2017, 10, 3, 17, 16, 21, 866865, tzinfo=<UTC>), 'reset_password': '904634554876204373073924026141289200', 'contact': 'example', 'last_accessed_at': None, 'thumbnail_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'salt': '0c6fvvLVwOl4uNsvuUp0RweUISOdEZNOgbAHqKEjwGg/C+pWglE5LiuB4hwOO3mNM5TGmHeYXebo5k/xqlVdGg=='}]
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=5
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_is_moderator (tests.unittests.api.helpers.test_permission_manager.TestPermissionManager)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/api/helpers/test_permission_manager.py", line 23, in setUp
db.session.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/scoping.py", line 157, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 906, in commit
self.transaction.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 461, in commit
self._prepare_impl()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 441, in _prepare_impl
self.session.flush()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2177, in flush
self._flush(objects)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2297, in _flush
transaction.rollback(_capture_exception=True)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2261, in _flush
flush_context.execute()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 389, in execute
rec.execute(self)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 548, in execute
uow
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 181, in save_obj
mapper, table, insert)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 835, in _emit_insert_statements
execute(statement, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 945, in execute
return meth(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 263, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1053, in _execute_clauseelement
compiled_sql, distilled_params
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint "users__email_key"
DETAIL: Key (_email)=([email protected]) already exists.
[SQL: 'INSERT INTO users (_email, _password, reset_password, salt, avatar_url, tokens, first_name, last_name, details, contact, facebook_url, twitter_url, instagram_url, google_plus_url, original_image_url, thumbnail_image_url, small_image_url, icon_image_url, is_super_admin, is_admin, is_verified, last_accessed_at, created_at, deleted_at) VALUES (%(_email)s, %(_password)s, %(reset_password)s, %(salt)s, %(avatar_url)s, %(tokens)s, %(first_name)s, %(last_name)s, %(details)s, %(contact)s, %(facebook_url)s, %(twitter_url)s, %(instagram_url)s, %(google_plus_url)s, %(original_image_url)s, %(thumbnail_image_url)s, %(small_image_url)s, %(icon_image_url)s, %(is_super_admin)s, %(is_admin)s, %(is_verified)s, %(last_accessed_at)s, %(created_at)s, %(deleted_at)s) RETURNING users.id'] [parameters: {'last_name': 'Doe', 'is_super_admin': False, 'small_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'deleted_at': None, 'google_plus_url': 'https://plus.google.com/plus.google', 'first_name': 'John', 'original_image_url': None, 'avatar_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'icon_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'is_verified': False, 'details': u'example', '_email': '[email protected]', 'twitter_url': 'https://twitter.com/twitter', 'facebook_url': 'https://facebook.com/facebook', 'tokens': None, 'is_admin': True, '_password': 'F7gfvwy4vLOmiz4IpzXnaD1OA2xqlKsspsAmGppzNAkU1Zbz4B9RBNCaSiNz27fLXs3iuGGZRC1VAB3hEgshtg==', 'instagram_url': 'https://instagram.com/instagram', 'created_at': datetime.datetime(2017, 10, 3, 17, 16, 21, 866865, tzinfo=<UTC>), 'reset_password': '195869074661738229374091363186843138831', 'contact': 'example', 'last_accessed_at': None, 'thumbnail_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'salt': 'kPa+D++NgCc4YHMAE5EuC0bU5sIY6mhwFOO4FYhNfnqhYlYOu4O1mC0e0K+AgJ/tJvgnacTgEFIxlkNFWxnwxA=='}]
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=6
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_is_organizer (tests.unittests.api.helpers.test_permission_manager.TestPermissionManager)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/api/helpers/test_permission_manager.py", line 23, in setUp
db.session.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/scoping.py", line 157, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 906, in commit
self.transaction.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 461, in commit
self._prepare_impl()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 441, in _prepare_impl
self.session.flush()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2177, in flush
self._flush(objects)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2297, in _flush
transaction.rollback(_capture_exception=True)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2261, in _flush
flush_context.execute()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 389, in execute
rec.execute(self)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 548, in execute
uow
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 181, in save_obj
mapper, table, insert)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 835, in _emit_insert_statements
execute(statement, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 945, in execute
return meth(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 263, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1053, in _execute_clauseelement
compiled_sql, distilled_params
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint "users__email_key"
DETAIL: Key (_email)=([email protected]) already exists.
[SQL: 'INSERT INTO users (_email, _password, reset_password, salt, avatar_url, tokens, first_name, last_name, details, contact, facebook_url, twitter_url, instagram_url, google_plus_url, original_image_url, thumbnail_image_url, small_image_url, icon_image_url, is_super_admin, is_admin, is_verified, last_accessed_at, created_at, deleted_at) VALUES (%(_email)s, %(_password)s, %(reset_password)s, %(salt)s, %(avatar_url)s, %(tokens)s, %(first_name)s, %(last_name)s, %(details)s, %(contact)s, %(facebook_url)s, %(twitter_url)s, %(instagram_url)s, %(google_plus_url)s, %(original_image_url)s, %(thumbnail_image_url)s, %(small_image_url)s, %(icon_image_url)s, %(is_super_admin)s, %(is_admin)s, %(is_verified)s, %(last_accessed_at)s, %(created_at)s, %(deleted_at)s) RETURNING users.id'] [parameters: {'last_name': 'Doe', 'is_super_admin': False, 'small_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'deleted_at': None, 'google_plus_url': 'https://plus.google.com/plus.google', 'first_name': 'John', 'original_image_url': None, 'avatar_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'icon_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'is_verified': False, 'details': u'example', '_email': '[email protected]', 'twitter_url': 'https://twitter.com/twitter', 'facebook_url': 'https://facebook.com/facebook', 'tokens': None, 'is_admin': True, '_password': '9sB2zxZ7SFLu1r3Ec8dXJ1kFlVTzfgrCLl2wvE+Z2mr+8yUWSk/Mpcd8cv90dsBpO0F+lL+YTrUNPbqr41wjlg==', 'instagram_url': 'https://instagram.com/instagram', 'created_at': datetime.datetime(2017, 10, 3, 17, 16, 21, 866865, tzinfo=<UTC>), 'reset_password': '290705538177974249620574970478381348277', 'contact': 'example', 'last_accessed_at': None, 'thumbnail_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'salt': 'aRgjNyoZtnBtqDRnRbVod54ru6y4zx6WRwWF3ZIDQ51TEd0g3Y/rRykEVv9k8GJe4CCtRPNcjH9ilQTWHr+TRg=='}]
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=7
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_is_registrar (tests.unittests.api.helpers.test_permission_manager.TestPermissionManager)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/api/helpers/test_permission_manager.py", line 23, in setUp
db.session.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/scoping.py", line 157, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 906, in commit
self.transaction.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 461, in commit
self._prepare_impl()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 441, in _prepare_impl
self.session.flush()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2177, in flush
self._flush(objects)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2297, in _flush
transaction.rollback(_capture_exception=True)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2261, in _flush
flush_context.execute()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 389, in execute
rec.execute(self)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 548, in execute
uow
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 181, in save_obj
mapper, table, insert)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 835, in _emit_insert_statements
execute(statement, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 945, in execute
return meth(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 263, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1053, in _execute_clauseelement
compiled_sql, distilled_params
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint "users__email_key"
DETAIL: Key (_email)=([email protected]) already exists.
[SQL: 'INSERT INTO users (_email, _password, reset_password, salt, avatar_url, tokens, first_name, last_name, details, contact, facebook_url, twitter_url, instagram_url, google_plus_url, original_image_url, thumbnail_image_url, small_image_url, icon_image_url, is_super_admin, is_admin, is_verified, last_accessed_at, created_at, deleted_at) VALUES (%(_email)s, %(_password)s, %(reset_password)s, %(salt)s, %(avatar_url)s, %(tokens)s, %(first_name)s, %(last_name)s, %(details)s, %(contact)s, %(facebook_url)s, %(twitter_url)s, %(instagram_url)s, %(google_plus_url)s, %(original_image_url)s, %(thumbnail_image_url)s, %(small_image_url)s, %(icon_image_url)s, %(is_super_admin)s, %(is_admin)s, %(is_verified)s, %(last_accessed_at)s, %(created_at)s, %(deleted_at)s) RETURNING users.id'] [parameters: {'last_name': 'Doe', 'is_super_admin': False, 'small_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'deleted_at': None, 'google_plus_url': 'https://plus.google.com/plus.google', 'first_name': 'John', 'original_image_url': None, 'avatar_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'icon_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'is_verified': False, 'details': u'example', '_email': '[email protected]', 'twitter_url': 'https://twitter.com/twitter', 'facebook_url': 'https://facebook.com/facebook', 'tokens': None, 'is_admin': True, '_password': 'Hi1IidaICm5Tq5YiV3lRa7jvlMx+jn+PMNAgVw6HIhflR5bm/IbhTrQ3r9aojsq/OGPgTu6QczXcyak4kiMo3Q==', 'instagram_url': 'https://instagram.com/instagram', 'created_at': datetime.datetime(2017, 10, 3, 17, 16, 21, 866865, tzinfo=<UTC>), 'reset_password': '25725436733682700683264281890953219359', 'contact': 'example', 'last_accessed_at': None, 'thumbnail_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'salt': 'FbBx2pzOPLi594JJsEsfKGih2orP2RYZTfwEJmtXXCaW7bEkEBHhqnaWsoUFWljPt3kSSwHO6tGv7bRJBv13Ag=='}]
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=8
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_is_track_organizer (tests.unittests.api.helpers.test_permission_manager.TestPermissionManager)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/api/helpers/test_permission_manager.py", line 23, in setUp
db.session.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/scoping.py", line 157, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 906, in commit
self.transaction.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 461, in commit
self._prepare_impl()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 441, in _prepare_impl
self.session.flush()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2177, in flush
self._flush(objects)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2297, in _flush
transaction.rollback(_capture_exception=True)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2261, in _flush
flush_context.execute()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 389, in execute
rec.execute(self)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 548, in execute
uow
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 181, in save_obj
mapper, table, insert)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 835, in _emit_insert_statements
execute(statement, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 945, in execute
return meth(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 263, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1053, in _execute_clauseelement
compiled_sql, distilled_params
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint "users__email_key"
DETAIL: Key (_email)=([email protected]) already exists.
[SQL: 'INSERT INTO users (_email, _password, reset_password, salt, avatar_url, tokens, first_name, last_name, details, contact, facebook_url, twitter_url, instagram_url, google_plus_url, original_image_url, thumbnail_image_url, small_image_url, icon_image_url, is_super_admin, is_admin, is_verified, last_accessed_at, created_at, deleted_at) VALUES (%(_email)s, %(_password)s, %(reset_password)s, %(salt)s, %(avatar_url)s, %(tokens)s, %(first_name)s, %(last_name)s, %(details)s, %(contact)s, %(facebook_url)s, %(twitter_url)s, %(instagram_url)s, %(google_plus_url)s, %(original_image_url)s, %(thumbnail_image_url)s, %(small_image_url)s, %(icon_image_url)s, %(is_super_admin)s, %(is_admin)s, %(is_verified)s, %(last_accessed_at)s, %(created_at)s, %(deleted_at)s) RETURNING users.id'] [parameters: {'last_name': 'Doe', 'is_super_admin': False, 'small_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'deleted_at': None, 'google_plus_url': 'https://plus.google.com/plus.google', 'first_name': 'John', 'original_image_url': None, 'avatar_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'icon_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'is_verified': False, 'details': u'example', '_email': '[email protected]', 'twitter_url': 'https://twitter.com/twitter', 'facebook_url': 'https://facebook.com/facebook', 'tokens': None, 'is_admin': True, '_password': 'ARO5KKmL7kkwCtyW43g6pdWVkwhf6CeCFFz6unnTwOVVgZP5pICWElJqlhQ6v9+BAr/jbd0du6IDvvOEBlXluw==', 'instagram_url': 'https://instagram.com/instagram', 'created_at': datetime.datetime(2017, 10, 3, 17, 16, 21, 866865, tzinfo=<UTC>), 'reset_password': '339056520235010744624411926913991173919', 'contact': 'example', 'last_accessed_at': None, 'thumbnail_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'salt': '/mIxT0e4A5U6s9Y82j3fp6uMlvLYxvzaEuobF5il1zONugHyMogp1c2owAiQGwIwYCEHqqHrHlFvQIQc8DGAOQ=='}]
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=9
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_permission_manager_attributes (tests.unittests.api.helpers.test_permission_manager.TestPermissionManager)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/api/helpers/test_permission_manager.py", line 23, in setUp
db.session.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/scoping.py", line 157, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 906, in commit
self.transaction.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 461, in commit
self._prepare_impl()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 441, in _prepare_impl
self.session.flush()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2177, in flush
self._flush(objects)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2297, in _flush
transaction.rollback(_capture_exception=True)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2261, in _flush
flush_context.execute()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 389, in execute
rec.execute(self)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 548, in execute
uow
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 181, in save_obj
mapper, table, insert)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 835, in _emit_insert_statements
execute(statement, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 945, in execute
return meth(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 263, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1053, in _execute_clauseelement
compiled_sql, distilled_params
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint "users__email_key"
DETAIL: Key (_email)=([email protected]) already exists.
[SQL: 'INSERT INTO users (_email, _password, reset_password, salt, avatar_url, tokens, first_name, last_name, details, contact, facebook_url, twitter_url, instagram_url, google_plus_url, original_image_url, thumbnail_image_url, small_image_url, icon_image_url, is_super_admin, is_admin, is_verified, last_accessed_at, created_at, deleted_at) VALUES (%(_email)s, %(_password)s, %(reset_password)s, %(salt)s, %(avatar_url)s, %(tokens)s, %(first_name)s, %(last_name)s, %(details)s, %(contact)s, %(facebook_url)s, %(twitter_url)s, %(instagram_url)s, %(google_plus_url)s, %(original_image_url)s, %(thumbnail_image_url)s, %(small_image_url)s, %(icon_image_url)s, %(is_super_admin)s, %(is_admin)s, %(is_verified)s, %(last_accessed_at)s, %(created_at)s, %(deleted_at)s) RETURNING users.id'] [parameters: {'last_name': 'Doe', 'is_super_admin': False, 'small_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'deleted_at': None, 'google_plus_url': 'https://plus.google.com/plus.google', 'first_name': 'John', 'original_image_url': None, 'avatar_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'icon_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'is_verified': False, 'details': u'example', '_email': '[email protected]', 'twitter_url': 'https://twitter.com/twitter', 'facebook_url': 'https://facebook.com/facebook', 'tokens': None, 'is_admin': True, '_password': '9TbXQn00D4sC+6/KjhicAgXFeIqVvxh7Yu3lghPBHS6cYNQMZdVftRQbmROTtBrh/LaQBx0B5Qduka/EDgEq4g==', 'instagram_url': 'https://instagram.com/instagram', 'created_at': datetime.datetime(2017, 10, 3, 17, 16, 21, 866865, tzinfo=<UTC>), 'reset_password': '308758580043360280712287182810930941000', 'contact': 'example', 'last_accessed_at': None, 'thumbnail_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'salt': 'U1SgWPPEflkRm09a+3OWCNbcwo8Ujz//b18uoIQGD1SyflXHo1WEuzfaaSMrC8AR9ZLnqWWAOzuFqWlNN0YBjw=='}]
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=10
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_dasherize (tests.unittests.api.helpers.test_utilities.TestUtilitiesHelperValidation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_require_relationship (tests.unittests.api.helpers.test_utilities.TestUtilitiesHelperValidation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Discount Code Validate Quantity - Tests if validation works on values stored in db and not given in 'data'
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/api/validation/test_discount_codes.py", line 75, in test_quantity_db_populate
db.session.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/scoping.py", line 157, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 906, in commit
self.transaction.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 461, in commit
self._prepare_impl()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 441, in _prepare_impl
self.session.flush()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2177, in flush
self._flush(objects)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2297, in _flush
transaction.rollback(_capture_exception=True)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2261, in _flush
flush_context.execute()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 389, in execute
rec.execute(self)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 548, in execute
uow
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 181, in save_obj
mapper, table, insert)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 835, in _emit_insert_statements
execute(statement, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 945, in execute
return meth(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 263, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1053, in _execute_clauseelement
compiled_sql, distilled_params
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint "users__email_key"
DETAIL: Key (_email)=([email protected]) already exists.
[SQL: 'INSERT INTO users (_email, _password, reset_password, salt, avatar_url, tokens, first_name, last_name, details, contact, facebook_url, twitter_url, instagram_url, google_plus_url, original_image_url, thumbnail_image_url, small_image_url, icon_image_url, is_super_admin, is_admin, is_verified, last_accessed_at, created_at, deleted_at) VALUES (%(_email)s, %(_password)s, %(reset_password)s, %(salt)s, %(avatar_url)s, %(tokens)s, %(first_name)s, %(last_name)s, %(details)s, %(contact)s, %(facebook_url)s, %(twitter_url)s, %(instagram_url)s, %(google_plus_url)s, %(original_image_url)s, %(thumbnail_image_url)s, %(small_image_url)s, %(icon_image_url)s, %(is_super_admin)s, %(is_admin)s, %(is_verified)s, %(last_accessed_at)s, %(created_at)s, %(deleted_at)s) RETURNING users.id'] [parameters: {'last_name': 'Doe', 'is_super_admin': False, 'small_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'deleted_at': None, 'google_plus_url': 'https://plus.google.com/plus.google', 'first_name': 'John', 'original_image_url': None, 'avatar_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'icon_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'is_verified': False, 'details': u'example', '_email': '[email protected]', 'twitter_url': 'https://twitter.com/twitter', 'facebook_url': 'https://facebook.com/facebook', 'tokens': None, 'is_admin': True, '_password': 'aIb/mFMipWhtcBUNdhEN4/8zzQ79RnxzGGO1llsYvIkGlYRQ7FojTRbBZK4Y5/DzwepURCS4z7dIsSkX39ua3A==', 'instagram_url': 'https://instagram.com/instagram', 'created_at': datetime.datetime(2017, 10, 3, 17, 16, 21, 866865, tzinfo=<UTC>), 'reset_password': '255182369578082975049665225157565823649', 'contact': 'example', 'last_accessed_at': None, 'thumbnail_image_url': 'https://www.w3schools.com/html/pic_mountain.jpg', 'salt': 'L0EZAitx9802GN/7pI9Y7HAu9kp8PTGMVFXbmsNAfiH4RiYJuzVL+B89DZcxJICD9GgrWFFVXSlT9xI54V2RjQ=='}]
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: RelatedFactory: Generating app.factories.user.UserFactory(<factory.builder.BuildStep object at 0x7f5fa5d601d0>)
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=11
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Discount Code Validate Quantity - Tests if validation works on values stored in db and not given in 'data'
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: RelatedFactory: Generating app.factories.user.UserFactory(<factory.builder.BuildStep object at 0x7f5fa5d601d0>)
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=11
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Discount Code Validate Quantity - Tests if exception is raised when min_quantity greater than max
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Discount Code Validate Quantity - Tests if exception is raised when min_quantity greater than max
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Discount Code Validate Quantity - Tests if the function runs without an exception
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Events Validate Date - Tests if validation works on values stored in db and not given in 'data'
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=4
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Events Validate Date - Tests if the function runs without an exception
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Events Validate Date - Tests if exception is raised when ends_at is before starts_at
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Sessions Validate Date - Tests if validation works on values stored in db and not given in 'data'
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: RelatedFactory: Generating app.factories.event.EventFactoryBasic(<factory.builder.BuildStep object at 0x7f5fa5d325d0>)
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=5
factory.generate: DEBUG: RelatedFactory: Generating app.factories.session_type.SessionTypeFactory(<factory.builder.BuildStep object at 0x7f5fa5d325d0>)
factory.generate: DEBUG: RelatedFactory: Generating app.factories.event.EventFactoryBasic(<factory.builder.BuildStep object at 0x7f5fa57a5610>)
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=6
factory.generate: DEBUG: RelatedFactory: Generating app.factories.track.TrackFactory(<factory.builder.BuildStep object at 0x7f5fa5d325d0>)
factory.generate: DEBUG: RelatedFactory: Generating app.factories.event.EventFactoryBasic(<factory.builder.BuildStep object at 0x7f5fa5d99a50>)
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=7
factory.generate: DEBUG: RelatedFactory: Generating app.factories.microlocation.MicrolocationFactory(<factory.builder.BuildStep object at 0x7f5fa5d325d0>)
factory.generate: DEBUG: RelatedFactory: Generating app.factories.event.EventFactoryBasic(<factory.builder.BuildStep object at 0x7f5fa57b1310>)
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=8
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Sessions Validate Date - Tests if the function runs without an exception
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Sessions Validate Date - Tests if exception is raised when ends_at is before starts_at
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Speakers Call Validate Date - Tests if validation works on values stored in db and not given in 'data'
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: RelatedFactory: Generating app.factories.event.EventFactoryBasic(<factory.builder.BuildStep object at 0x7f5fa6a32090>)
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=9
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Speakers Call Validate Date - Tests if the function runs without an exception
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Speakers Call Validate Date - Tests if exception is raised when ends_at is before starts_at
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Tickets Validate Date - Tests if validation works on values stored in db and not given in 'data'
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/api/validation/test_tickets.py", line 58, in test_date_db_populate
db.session.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/scoping.py", line 157, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 906, in commit
self.transaction.commit()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 461, in commit
self._prepare_impl()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 441, in _prepare_impl
self.session.flush()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2177, in flush
self._flush(objects)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2297, in _flush
transaction.rollback(_capture_exception=True)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2261, in _flush
flush_context.execute()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 389, in execute
rec.execute(self)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 548, in execute
uow
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 181, in save_obj
mapper, table, insert)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 835, in _emit_insert_statements
execute(statement, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 945, in execute
return meth(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 263, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1053, in _execute_clauseelement
compiled_sql, distilled_params
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint "name_event_uc"
DETAIL: Key (name, event_id)=(example, 1) already exists.
[SQL: 'INSERT INTO tickets (name, description, is_description_visible, type, quantity, position, price, is_fee_absorbed, sales_starts_at, sales_ends_at, is_hidden, min_order, max_order, event_id) VALUES (%(name)s, %(description)s, %(is_description_visible)s, %(type)s, %(quantity)s, %(position)s, %(price)s, %(is_fee_absorbed)s, %(sales_starts_at)s, %(sales_ends_at)s, %(is_hidden)s, %(min_order)s, %(max_order)s, %(event_id)s) RETURNING tickets.id'] [parameters: {'description': 'example', 'event_id': 1, 'price': '1.23456789', 'sales_starts_at': '2016-12-13T23:59:59.123456+00:00', 'is_fee_absorbed': True, 'min_order': 0, 'max_order': 10, 'position': 10, 'is_hidden': True, 'quantity': 10, 'type': 'example', 'is_description_visible': True, 'sales_ends_at': '2016-12-14T23:59:59.123456+00:00', 'name': 'example'}]
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: RelatedFactory: Generating app.factories.event.EventFactoryBasic(<factory.builder.BuildStep object at 0x7f5fa57d9810>)
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=10
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Tickets Validate Date - Tests if validation works on values stored in db and not given in 'data'
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: RelatedFactory: Generating app.factories.event.EventFactoryBasic(<factory.builder.BuildStep object at 0x7f5fa57d9810>)
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=10
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Tickets Validate Date - Tests if the function runs without an exception
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Tickets Validate Date - Tests if exception is raised when sales_ends_at is before sales_starts_at
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Tickets Validate Quantity - Tests if exception is raised when min_order greater than max
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Tickets Validate Quantity - Tests if the function runs without an exception
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Tickets Validate Quantity - Tests if exception is raised when quantity less than max_order
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_migrations (tests.unittests.test_migrations.TestMigrations)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/utils.py", line 21, in tearDown
Setup.drop_db()
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/setup_database.py", line 36, in drop_db
db.engine.execute("drop schema if exists public cascade")
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2064, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 939, in execute
return self._execute_text(object, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1097, in _execute_text
statement, parameters
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) must be owner of schema public
[SQL: 'drop schema if exists public cascade']
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_get_count (tests.unittests.api.helpers.test_db.TestDBHelperValidation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/api/helpers/test_db.py", line 54, in test_get_count
self.assertEqual(get_count(TicketHolder.query), 1)
AssertionError: 7L != 1
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Reading environment variables from: /home/invinciblycool/FOSSASIA/open-event-orga-server/.env
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Get 'SERVER_NAME' casted as 'None'/'None' with default 'None'
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Get 'DATABASE_URL' casted as 'None'/'None' with default 'None'
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Get 'SERVE_STATIC' casted as '<type 'bool'>'/'None' with default 'False'
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Get 'SENTRY_DSN' casted as 'None'/'None' with default 'None'
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Get 'ENABLE_ELASTICSEARCH' casted as '<type 'bool'>'/'None' with default 'False'
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Get 'ELASTICSEARCH_HOST' casted as 'None'/'None' with default 'localhost:9200'
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Get 'REDIS_URL' casted as 'None'/'None' with default 'redis://localhost:6379/0'
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Get 'PROPOGATE_ERROR' casted as '<type 'bool'>'/'None' with default 'False'
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Get 'API_PROPOGATE_UNCAUGHT_EXCEPTIONS' casted as '<type 'bool'>'/'None' with default 'True'
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Get 'TEST_DATABASE_URL' casted as 'None'/'None' with default 'None'
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: envfile not found at /home/invinciblycool/FOSSASIA/open-event-orga-server/app/.env, looking in parent dir.
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Reading environment variables from: /home/invinciblycool/FOSSASIA/open-event-orga-server/.env
/usr/local/lib/python2.7/dist-packages/envparse.pyc: DEBUG: Get 'APP_CONFIG' casted as 'None'/'None' with default 'config.ProductionConfig'
raven.base.Client: DEBUG: Configuring Raven for host: <raven.conf.remote.RemoteConfig object at 0x7f5fa6b3fe90>
raven.base.Client: INFO: Raven is not configured (logging is disabled). Please see the documentation for more information.
apscheduler.scheduler: INFO: Adding job tentatively -- it will be properly scheduled when the scheduler starts
apscheduler.scheduler: INFO: Adding job tentatively -- it will be properly scheduled when the scheduler starts
apscheduler.scheduler: INFO: Adding job tentatively -- it will be properly scheduled when the scheduler starts
apscheduler.scheduler: INFO: Added job "send_after_event_mail" to job store "default"
apscheduler.scheduler: INFO: Added job "send_event_fee_notification" to job store "default"
apscheduler.scheduler: INFO: Added job "send_event_fee_notification_followup" to job store "default"
apscheduler.scheduler: INFO: Scheduler started
apscheduler.scheduler: DEBUG: Looking for jobs to run
apscheduler.scheduler: DEBUG: Next wakeup is due at 2017-10-04 05:30:00+00:00 (in 44011.040664 seconds)
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=0
factory.generate: DEBUG: RelatedFactory: Generating app.factories.event.EventFactoryBasic(<factory.builder.BuildStep object at 0x7f5fa5f81950>)
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=0
root: INFO: Saved to db
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_get_or_create (tests.unittests.api.helpers.test_db.TestDBHelperValidation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/api/helpers/test_db.py", line 43, in test_get_or_create
self.assertEqual(event.id, obj.id)
AssertionError: 56 != 1
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
factory.generate: DEBUG: Sequence: Computing next value of <function <lambda> at 0x7f5fa6017938> for seq=1
root: INFO: Saved to db
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_safe_query_exception (tests.unittests.api.helpers.test_db.TestDBHelperValidation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/invinciblycool/FOSSASIA/open-event-orga-server/tests/unittests/api/helpers/test_db.py", line 36, in test_safe_query_exception
self.assertRaises(ObjectNotFound, lambda: safe_query(db, Event, 'id', 1, 'event_id'))
AssertionError: ObjectNotFound not raised
-------------------- >> begin captured stdout << ---------------------
Creating roles...
Creating services...
Creating permissions...
Creating custom system roles...
Creating admin panel permissions...
Creating user permissions...
Creating admin message settings...
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Setting saved
root: INFO: added to session
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 45 tests in 31.956s
FAILED (errors=49, failures=3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment