Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1253724 Details for
Bug 1424145
python-flask-restless: FTBFS in rawhide
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh90 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
build.log
<fdopen> (text/plain), 216.50 KB, created by
Fedora Release Engineering
on 2017-02-17 16:04:10 UTC
(
hide
)
Description:
build.log
Filename:
MIME Type:
Creator:
Fedora Release Engineering
Created:
2017-02-17 16:04:10 UTC
Size:
216.50 KB
patch
obsolete
>Mock Version: 1.3.3 >Mock Version: 1.3.3 >ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/python-flask-restless.spec'], logger=<mockbuild.trace_decorator.getLog object at 0x7f9f316fc3c8>timeout=172800user='mockbuild'shell=Falsegid=425uid=1000chrootPath='/var/lib/mock/f26-build-7647548-694519/root'printOutput=Falseenv={'LANG': 'en_US.UTF-8', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'TERM': 'vt100', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'SHELL': '/bin/bash'}) >Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/python-flask-restless.spec'] with env {'LANG': 'en_US.UTF-8', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'TERM': 'vt100', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'SHELL': '/bin/bash'} and shell False >Building target platforms: noarch >Building for target noarch >Wrote: /builddir/build/SRPMS/python-flask-restless-0.17.0-8.fc26.src.rpm >Child return code was: 0 >ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-flask-restless.spec'], logger=<mockbuild.trace_decorator.getLog object at 0x7f9f316fc3c8>timeout=172800user='mockbuild'shell=Falsegid=425private_network=Trueuid=1000chrootPath='/var/lib/mock/f26-build-7647548-694519/root'printOutput=Falseenv={'LANG': 'en_US.UTF-8', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'TERM': 'vt100', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'SHELL': '/bin/bash'}) >Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-flask-restless.spec'] with env {'LANG': 'en_US.UTF-8', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'TERM': 'vt100', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'SHELL': '/bin/bash'} and shell False >Building target platforms: noarch >Building for target noarch >Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.c0xJTX >+ umask 022 >+ cd /builddir/build/BUILD >+ cd /builddir/build/BUILD >+ rm -rf flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f >+ /usr/bin/gzip -dc /builddir/build/SOURCES/flask-restless-0.17.0.tar.gz >+ /usr/bin/tar -xof - >+ STATUS=0 >+ '[' 0 -ne 0 ']' >+ cd flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f >+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . >+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch >+ /usr/bin/cat /builddir/build/SOURCES/0001-drop-failing-test.patch >+ exit 0 >Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.pQb5KF >+ umask 022 >+ cd /builddir/build/BUILD >+ cd flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f >+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' >+ /usr/bin/python2 setup.py build '--executable=/usr/bin/python2 -s' >running build >running build_py >creating build >creating build/lib >creating build/lib/flask_restless >copying flask_restless/__init__.py -> build/lib/flask_restless >copying flask_restless/manager.py -> build/lib/flask_restless >copying flask_restless/views.py -> build/lib/flask_restless >copying flask_restless/search.py -> build/lib/flask_restless >copying flask_restless/helpers.py -> build/lib/flask_restless >running egg_info >creating Flask_Restless.egg-info >writing requirements to Flask_Restless.egg-info/requires.txt >writing Flask_Restless.egg-info/PKG-INFO >writing top-level names to Flask_Restless.egg-info/top_level.txt >writing dependency_links to Flask_Restless.egg-info/dependency_links.txt >writing manifest file 'Flask_Restless.egg-info/SOURCES.txt' >reading manifest file 'Flask_Restless.egg-info/SOURCES.txt' >writing manifest file 'Flask_Restless.egg-info/SOURCES.txt' >+ sleep 1 >+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' >+ /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' >running build >running build_py >running egg_info >writing Flask_Restless.egg-info/PKG-INFO >writing dependency_links to Flask_Restless.egg-info/dependency_links.txt >writing requirements to Flask_Restless.egg-info/requires.txt >writing top-level names to Flask_Restless.egg-info/top_level.txt >reading manifest file 'Flask_Restless.egg-info/SOURCES.txt' >writing manifest file 'Flask_Restless.egg-info/SOURCES.txt' >+ sleep 1 >+ exit 0 >Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.kB8enu >+ umask 022 >+ cd /builddir/build/BUILD >+ '[' /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch '!=' / ']' >+ rm -rf /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch >++ dirname /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch >+ mkdir -p /builddir/build/BUILDROOT >+ mkdir /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch >+ cd flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f >+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' >+ /usr/bin/python2 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch >running install >running install_lib >creating /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr >creating /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib >creating /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python2.7 >creating /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python2.7/site-packages >creating /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python2.7/site-packages/flask_restless >copying build/lib/flask_restless/__init__.py -> /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python2.7/site-packages/flask_restless >copying build/lib/flask_restless/manager.py -> /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python2.7/site-packages/flask_restless >copying build/lib/flask_restless/views.py -> /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python2.7/site-packages/flask_restless >copying build/lib/flask_restless/search.py -> /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python2.7/site-packages/flask_restless >copying build/lib/flask_restless/helpers.py -> /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python2.7/site-packages/flask_restless >byte-compiling /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python2.7/site-packages/flask_restless/__init__.py to __init__.pyc >byte-compiling /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python2.7/site-packages/flask_restless/manager.py to manager.pyc >byte-compiling /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python2.7/site-packages/flask_restless/views.py to views.pyc >byte-compiling /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python2.7/site-packages/flask_restless/search.py to search.pyc >byte-compiling /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python2.7/site-packages/flask_restless/helpers.py to helpers.pyc >writing byte-compilation script '/tmp/tmpVP5h4a.py' >/usr/bin/python2 -O /tmp/tmpVP5h4a.py >removing /tmp/tmpVP5h4a.py >running install_egg_info >running egg_info >writing requirements to Flask_Restless.egg-info/requires.txt >writing Flask_Restless.egg-info/PKG-INFO >writing top-level names to Flask_Restless.egg-info/top_level.txt >writing dependency_links to Flask_Restless.egg-info/dependency_links.txt >reading manifest file 'Flask_Restless.egg-info/SOURCES.txt' >writing manifest file 'Flask_Restless.egg-info/SOURCES.txt' >Copying Flask_Restless.egg-info to /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python2.7/site-packages/Flask_Restless-0.17.0-py2.7.egg-info >running install_scripts >+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' >+ /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch >running install >running install_lib >creating /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python3.6 >creating /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python3.6/site-packages >creating /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python3.6/site-packages/flask_restless >copying build/lib/flask_restless/__init__.py -> /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python3.6/site-packages/flask_restless >copying build/lib/flask_restless/manager.py -> /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python3.6/site-packages/flask_restless >copying build/lib/flask_restless/views.py -> /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python3.6/site-packages/flask_restless >copying build/lib/flask_restless/search.py -> /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python3.6/site-packages/flask_restless >copying build/lib/flask_restless/helpers.py -> /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python3.6/site-packages/flask_restless >byte-compiling /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python3.6/site-packages/flask_restless/__init__.py to __init__.cpython-36.pyc >byte-compiling /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python3.6/site-packages/flask_restless/manager.py to manager.cpython-36.pyc >byte-compiling /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python3.6/site-packages/flask_restless/views.py to views.cpython-36.pyc >byte-compiling /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python3.6/site-packages/flask_restless/search.py to search.cpython-36.pyc >byte-compiling /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python3.6/site-packages/flask_restless/helpers.py to helpers.cpython-36.pyc >writing byte-compilation script '/tmp/tmppum2lnx4.py' >/usr/bin/python3 /tmp/tmppum2lnx4.py >removing /tmp/tmppum2lnx4.py >running install_egg_info >running egg_info >writing Flask_Restless.egg-info/PKG-INFO >writing dependency_links to Flask_Restless.egg-info/dependency_links.txt >writing requirements to Flask_Restless.egg-info/requires.txt >writing top-level names to Flask_Restless.egg-info/top_level.txt >reading manifest file 'Flask_Restless.egg-info/SOURCES.txt' >writing manifest file 'Flask_Restless.egg-info/SOURCES.txt' >Copying Flask_Restless.egg-info to /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python3.6/site-packages/Flask_Restless-0.17.0-py3.6.egg-info >running install_scripts >+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 /builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f >find: 'debug': No such file or directory >+ /usr/lib/rpm/check-buildroot >+ /usr/lib/rpm/brp-compress >+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip >+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 >Bytecompiling .py files below /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python2.7 using /usr/bin/python2.7 >Bytecompiling .py files below /builddir/build/BUILDROOT/python-flask-restless-0.17.0-8.fc26.noarch/usr/lib/python3.6 using /usr/bin/python3.6 >+ /usr/lib/rpm/brp-python-hardlink >Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.CP1MEm >+ umask 022 >+ cd /builddir/build/BUILD >+ cd flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f >+ /usr/bin/python2 setup.py test >running test >running egg_info >writing requirements to Flask_Restless.egg-info/requires.txt >writing Flask_Restless.egg-info/PKG-INFO >writing top-level names to Flask_Restless.egg-info/top_level.txt >writing dependency_links to Flask_Restless.egg-info/dependency_links.txt >reading manifest file 'Flask_Restless.egg-info/SOURCES.txt' >writing manifest file 'Flask_Restless.egg-info/SOURCES.txt' >running build_ext >/usr/lib/python2.7/site-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.restless is deprecated, use flask_restless instead. > .format(x=modname), ExtDeprecationWarning >/usr/lib/python2.7/site-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.restless.helpers is deprecated, use flask_restless.helpers instead. > .format(x=modname), ExtDeprecationWarning >/usr/lib/python2.7/site-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.sqlalchemy is deprecated, use flask_sqlalchemy instead. > .format(x=modname), ExtDeprecationWarning >/usr/lib/python2.7/site-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.restless.search is deprecated, use flask_restless.search instead. > .format(x=modname), ExtDeprecationWarning >/usr/lib/python2.7/site-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.restless.manager is deprecated, use flask_restless.manager instead. > .format(x=modname), ExtDeprecationWarning >tests.test_helpers.TestFunctionEvaluation.test_basic_evaluation >Tests for basic function evaluation. ... ok >tests.test_helpers.TestFunctionEvaluation.test_count >Tests for counting the number of rows in a query. ... ok >tests.test_helpers.TestFunctionEvaluation.test_poorly_defined_functions >Tests that poorly defined functions raise errors. ... ok >tests.test_helpers.TestHelpers.test_partition >Test for partitioning a list into two lists based on a given ... ok >tests.test_helpers.TestHelpers.test_upper_keys >Test for converting keys in a dictionary to upper case. ... ok >tests.test_helpers.TestModelHelpers.test_date_serialization >Tests that date objects in the database are correctly serialized in ... ok >tests.test_helpers.TestModelHelpers.test_datetime_serialization >Tests that datetime objects in the database are correctly serialized ... ok >tests.test_helpers.TestModelHelpers.test_get_columns >Test for getting the names of columns as strings. ... ok >tests.test_helpers.TestModelHelpers.test_get_related_model_hybrid >Tests that the :func:`flask.ext.restless.get_related_model` function ... ok >tests.test_helpers.TestModelHelpers.test_get_relations >Tests getting the names of the relations of a model as strings. ... ok >tests.test_helpers.TestModelHelpers.test_is_like_list >Tests if the relation of `instance` whose name is `relation` is ... ok >tests.test_helpers.TestModelHelpers.test_primary_key_name >Test for determining the primary attribute of a model or instance. ... ERROR >tests.test_helpers.TestModelHelpers.test_to_dict >Test for serializing attributes of an instance of the model by the ... ok >tests.test_helpers.TestModelHelpers.test_to_dict_deep >Tests that fields corresponding to related model instances are ... ok >tests.test_helpers.TestModelHelpers.test_to_dict_dynamic_relation >Tests that a dynamically queried relation is resolved when getting ... ok >tests.test_helpers.TestModelHelpers.test_to_dict_hybrid_property >Tests that hybrid properties are correctly serialized. ... ok >tests.test_helpers.TestModelHelpers.test_to_dict_nested_object >Tests that nested objects are correctly serialized. ... ok >tests.test_helpers.TestModelHelpers.test_uuid >Tests for correct serialization of UUID objects. ... ok >tests.test_helpers.TestSessionQuery.test_callable_query >Test for :func:`session_query` when the model has a callable ... ok >tests.test_manager.TestAPIManager.test_allow_functions >Tests that the ``allow_functions`` keyword argument makes a ... ok >tests.test_manager.TestAPIManager.test_constructor >Tests that no error occurs on instantiation without any arguments to ... ok >tests.test_manager.TestAPIManager.test_create_api >Tests that the :meth:`flask_restless.manager.APIManager.create_api` ... ERROR >tests.test_manager.TestAPIManager.test_different_collection_name >Tests that providing a different collection name exposes the API at ... ERROR >tests.test_manager.TestAPIManager.test_different_urls >Tests that establishing different URL endpoints for the same model ... ERROR >tests.test_manager.TestAPIManager.test_disallow_functions >Tests that if the ``allow_functions`` keyword argument if ``False``, ... ok >tests.test_manager.TestAPIManager.test_exclude_column_attributes >Test for specifying excluded columns as SQLAlchemy column attributes. ... ERROR >tests.test_manager.TestAPIManager.test_exclude_columns >Tests that the ``exclude_columns`` argument specifies which columns ... ERROR >tests.test_manager.TestAPIManager.test_exclude_primary_key_column >Tests that trying to create a writable API while excluding the ... ERROR >tests.test_manager.TestAPIManager.test_exclude_related >Test for specifying excluded columns on related models. ... ERROR >tests.test_manager.TestAPIManager.test_expose_lazy_relations >Tests that lazy relations are exposed at a URL which is a child of ... ok >tests.test_manager.TestAPIManager.test_expose_relations >Tests that relations are exposed at a URL which is a child of the ... ERROR >tests.test_manager.TestAPIManager.test_include_column_attributes >Test for specifying included columns as SQLAlchemy column attributes. ... ERROR >tests.test_manager.TestAPIManager.test_include_columns >Tests that the `include_columns` argument specifies which columns to ... ERROR >tests.test_manager.TestAPIManager.test_include_methods >Tests that the `include_methods` argument specifies which methods to ... ERROR >tests.test_manager.TestAPIManager.test_include_related >Test for specifying included columns on related models. ... ERROR >tests.test_manager.TestAPIManager.test_included_method_returns_object >Tests that objects are serialized when returned from a method listed ... ERROR >tests.test_manager.TestAPIManager.test_max_results_per_page >Test for specifying the ``max_results_per_page`` keyword argument. ... ERROR >tests.test_manager.TestAPIManager.test_multi_pk >Test for specifying a primary key from a set of primary keys to use ... ok >tests.test_manager.TestFSA.test_flask_sqlalchemy ... /usr/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py:800: UserWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True to suppress this warning. > warnings.warn('SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True to suppress this warning.') >ERROR >tests.test_manager.TestFSA.test_init_app ... ERROR >tests.test_manager.TestFSA.test_init_app_split_initialization ... ERROR >tests.test_manager.TestLocalAPIManager.test_creation_api_without_app_dependency >Tests that api can be added before app will be passed to manager. ... ok >tests.test_manager.TestLocalAPIManager.test_init_app >Tests for initializing the Flask application after instantiating the ... ok >tests.test_manager.TestLocalAPIManager.test_init_app_split_initialization ... ok >tests.test_manager.TestLocalAPIManager.test_init_multiple ... ok >tests.test_manager.TestLocalAPIManager.test_multiple_app_delayed_init ... ok >tests.test_manager.TestLocalAPIManager.test_universal_preprocessor >Tests universal preprocessor and postprocessor applied to all ... ok >tests.test_manager.TestLocalAPIManager.test_url_for ... ok >tests.test_manager.TestSerialization.test_custom_serializer_get ... ERROR >tests.test_manager.TestSerialization.test_custom_serializer_post ... ERROR >tests.test_processors.TestProcessors.test_add_filters >Test for adding a filter to a :http:method:`get` request for a ... FAIL >tests.test_processors.TestProcessors.test_change_instance_id >Tests that return values from preprocessors set the instance ID. ... ERROR >tests.test_processors.TestProcessors.test_delete_many_preprocessor ... ERROR >tests.test_processors.TestProcessors.test_delete_preprocessor >Tests for using a preprocessor with :http:method:`delete` requests. ... ERROR >tests.test_processors.TestProcessors.test_delete_single >Test for the DELETE_SINGLE preprocessor. ... ERROR >tests.test_processors.TestProcessors.test_get_many_postprocessor ... ERROR >tests.test_processors.TestProcessors.test_get_many_preprocessor ... ERROR >tests.test_processors.TestProcessors.test_get_single_preprocessor >Tests :http:method:`get` requests for a single object with ... ERROR >tests.test_processors.TestProcessors.test_patch_many_preprocessor >Tests for using a preprocessor with :http:method:`patch` requests ... ERROR >tests.test_processors.TestProcessors.test_patch_single_preprocessor >Tests for using a preprocessor with :http:method:`patch` requests. ... ERROR >tests.test_processors.TestProcessors.test_patch_single_preprocessor2 >Tests for using a preprocessor with :http:method:`patch` requests. ... ERROR >tests.test_processors.TestProcessors.test_post_preprocessor >Tests :http:method:`post` requests with a preprocessor function. ... ERROR >tests.test_processors.TestProcessors.test_processor_no_change >Tests :http:method:`post` requests with a preprocessor function. ... ERROR >tests.test_search.TestOperators.test_desc_and_asc >Tests for the ``"desc"`` and ``"asc"`` operators. ... ok >tests.test_search.TestOperators.test_has_and_any >Tests for the ``"has"`` and ``"any"`` operators. ... ERROR >tests.test_search.TestOperators.test_has_and_any_nested_suboperators >Tests for the ``"has"`` and ``"any"`` operators with nested ... ERROR >tests.test_search.TestOperators.test_has_and_any_suboperators >Tests for the ``"has"`` and ``"any"`` operators with suboperators. ... ERROR >tests.test_search.TestOperators.test_operators >Tests for each of the individual operators in ... ERROR >tests.test_search.TestQueryCreation.test_basic_query >Tests for basic query correctness. ... ERROR >tests.test_search.TestQueryCreation.test_dict_same_as_search_params >Tests that creating a query using a dictionary results in the same ... ERROR >tests.test_search.TestQueryCreation.test_empty_search >Tests that a query with no search parameters returns everything. ... ERROR >tests.test_search.TestQueryCreation.test_order_by_and_filter_on_the_same_relation ... /usr/lib64/python2.7/site-packages/sqlalchemy/sql/sqltypes.py:219: SAWarning: Unicode type received non-unicode bind param value '%y'. (this warning may be suppressed after 10 occurrences) > (util.ellipses_string(value),)) >ok >tests.test_search.TestQueryCreation.test_order_by_relation_field_ascending ... ok >tests.test_search.TestQueryCreation.test_order_by_relation_field_descending ... ok >tests.test_search.TestQueryCreation.test_query_related_field >Test for making a query with respect to a related field. ... ERROR >tests.test_search.TestSearch.test_search >Tests that asking for a single result raises an error unless the ... ERROR >tests.test_validation.TestSAV.test_format_validations ... SKIP: Skipped setUp: savalidation not found. >tests.test_validation.TestSAV.test_presence_validations ... SKIP: Skipped setUp: savalidation not found. >tests.test_validation.TestSimpleValidation.test_validations >Test SQLAlchemy's built-in simple validations. ... ok >tests.test_views.TestAPI.test_alternate_primary_key >Tests that models with primary keys which are not ``id`` columns are ... ERROR >tests.test_views.TestAPI.test_delete >Test for deleting an instance of the database using the ... ERROR >tests.test_views.TestAPI.test_delete_absent_instance >Test that deleting an instance of the model which does not exist ... ERROR >tests.test_views.TestAPI.test_delete_from_relation >Tests that a :http:method:`delete` request to a related instance ... ERROR >tests.test_views.TestAPI.test_delete_integrity_error >Tests that an :exc:`IntegrityError` raised in a ... ERROR >tests.test_views.TestAPI.test_delete_many >Tests for deleting many instances of a collection by using a search ... ERROR >tests.test_views.TestAPI.test_disallow_delete_many >Tests for deleting many instances of a collection by using a search ... ERROR >tests.test_views.TestAPI.test_disallow_patch_many >Tests that disallowing "patch many" requests responds with a ... ERROR >tests.test_views.TestAPI.test_duplicate_post >Tests for making a :http:method:`post` request with data that ... ERROR >tests.test_views.TestAPI.test_get_callable_query_attribute >Tests that a callable model.query attribute is being used ... ERROR >tests.test_views.TestAPI.test_get_string_pk >Tests for getting a row which has a string primary key, including ... ERROR >tests.test_views.TestAPI.test_jsonp >Test for JSON-P callbacks. ... ERROR >tests.test_views.TestAPI.test_num_results >Tests that a request for (a subset of) all instances of a model ... ERROR >tests.test_views.TestAPI.test_pagination >Tests for pagination of long result sets. ... ERROR >tests.test_views.TestAPI.test_patch_404 >Tests that making a :http:method:`patch` request to an instance ... ERROR >tests.test_views.TestAPI.test_patch_add_submodels >Test for updating a single instance of the model by adding a list of ... ERROR >tests.test_views.TestAPI.test_patch_autodelete_submodel >Tests the automatic deletion of entries marked with the ... ERROR >tests.test_views.TestAPI.test_patch_bad_parameter >Tests that attempting to make a :http:method:`patch` request with a ... ERROR >tests.test_views.TestAPI.test_patch_duplicate >Test for assigning a list containing duplicate items ... ERROR >tests.test_views.TestAPI.test_patch_empty >Test for making a :http:method:`patch` request with no data. ... ERROR >tests.test_views.TestAPI.test_patch_existing_single >Test for adding a single existing object to a one-to-one ... ERROR >tests.test_views.TestAPI.test_patch_integrity_error ... ERROR >tests.test_views.TestAPI.test_patch_m2m >Test for updating a model with a many to many relation that uses ... ERROR >tests.test_views.TestAPI.test_patch_many >Test for updating a collection of instances of the model using the ... ERROR >tests.test_views.TestAPI.test_patch_many_with_filter >Test for updating a collection of instances of the model using a ... ERROR >tests.test_views.TestAPI.test_patch_new_single >Test for adding a single new object to a one-to-one relationship ... ERROR >tests.test_views.TestAPI.test_patch_remove_m2m >Test for removing a relation on a model that uses an association ... ERROR >tests.test_views.TestAPI.test_patch_remove_submodel >Test for updating a single instance of the model by removing a ... ERROR >tests.test_views.TestAPI.test_patch_set_submodel >Test for assigning a list to a relation of a model using ... ERROR >tests.test_views.TestAPI.test_patch_update_relations >Test for posting a new model and simultaneously adding related ... ERROR >tests.test_views.TestAPI.test_patch_with_hybrid_property >Tests that a hybrid property can be correctly posted from a client. ... ERROR >tests.test_views.TestAPI.test_patch_with_single_submodel ... ERROR >tests.test_views.TestAPI.test_post >Test for creating a new instance of the database model using the ... ERROR >tests.test_views.TestAPI.test_post_bad_parameter >Tests that attempting to make a :http:method:`post` request with a ... ERROR >tests.test_views.TestAPI.test_post_date_functions >Tests that ``'CURRENT_TIMESTAMP'`` gets converted into a datetime ... ERROR >tests.test_views.TestAPI.test_post_empty_date >Tests that attempting to assign an empty date string to a date field ... ERROR >tests.test_views.TestAPI.test_post_form_preprocessor >Tests POST method decoration using a custom function. ... ERROR >tests.test_views.TestAPI.test_post_interval_functions ... ERROR >tests.test_views.TestAPI.test_post_m2m >Test for creating a new instance of the database model that has a ... ERROR >tests.test_views.TestAPI.test_post_nullable_date >Tests the creation of a model with a nullable date field. ... ERROR >tests.test_views.TestAPI.test_post_unicode_primary_key >Test for creating a new instance of the database model using the ... ERROR >tests.test_views.TestAPI.test_post_with_single_submodel ... ERROR >tests.test_views.TestAPI.test_post_with_submodels >Tests the creation of a model with a related field. ... ERROR >tests.test_views.TestAPI.test_put_same_as_patch >Tests that :http:method:`put` requests are the same as ... ERROR >tests.test_views.TestAPI.test_results_per_page >Tests that the client can correctly specify the number of results ... ERROR >tests.test_views.TestAPI.test_serialize_time >Test for getting the JSON representation of a time field. ... ERROR >tests.test_views.TestAPI.test_set_hybrid_property >Tests that a hybrid property can be correctly set by a client. ... ERROR >tests.test_views.TestAPI.test_single_update >Test for updating a single instance of the model using the ... ERROR >tests.test_views.TestAPI.test_specified_primary_key >Tests that models with more than one primary key are ... ERROR >tests.test_views.TestAssociationProxy.test_any >Tests that a search query correctly searches fields on an associated ... ok >tests.test_views.TestAssociationProxy.test_assoc_dict_put ... ok >tests.test_views.TestAssociationProxy.test_get_data >Tests that a :http:method:`get` request exhibits the correct ... ok >tests.test_views.TestAssociationProxy.test_num_results >Tests that the total number of results is returned. ... /usr/lib64/python2.7/site-packages/sqlalchemy/sql/sqltypes.py:219: SAWarning: Unicode type received non-unicode bind param value 'tag1'. (this warning may be suppressed after 10 occurrences) > (util.ellipses_string(value),)) >/usr/lib64/python2.7/site-packages/sqlalchemy/sql/sqltypes.py:219: SAWarning: Unicode type received non-unicode bind param value 'tag2'. (this warning may be suppressed after 10 occurrences) > (util.ellipses_string(value),)) >ok >tests.test_views.TestAssociationProxy.test_patch >Tests that a :http:method:`patch` request correctly sets the ... ok >tests.test_views.TestAssociationProxy.test_patch_multiple >Tests that a :http:method:`patch` request correctly adds multiple ... ok >tests.test_views.TestAssociationProxy.test_patch_with_add >Tests that a :http:method:`patch` request correctly adds an ... ok >tests.test_views.TestAssociationProxy.test_patch_with_remove >Tests that a :http:method:`patch` request correctly removes an ... ok >tests.test_views.TestAssociationProxy.test_post >Tests that a :http:method:`post` request correctly adds an ... ok >tests.test_views.TestAssociationProxy.test_post_many >Tests that a :http:method:`post` request correctly adds multiple ... ok >tests.test_views.TestAssociationProxy.test_scalar >Tests that association proxies to remote scalar attributes work ... ok >tests.test_views.TestFSAModel.test_get ... ERROR >tests.test_views.TestFunctionAPI.test_function_evaluation >Test that the :http:get:`/api/eval/person` endpoint returns the ... ok >tests.test_views.TestFunctionAPI.test_jsonp >Test for JSON-P callbacks. ... FAIL >tests.test_views.TestFunctionAPI.test_no_functions >Tests that if no functions are defined, an empty response is ... ok >tests.test_views.TestFunctionAPI.test_poorly_defined_functions >Tests that poorly defined requests for function evaluations cause an ... ok >tests.test_views.TestHeaders.test_accept >Tests that the server responds to the ``Accept`` with a response of ... ERROR >tests.test_views.TestHeaders.test_content_type >Tests that the server responds only to requests with a JSON ... ERROR >tests.test_views.TestHeaders.test_content_type_msie >Tests for compatibility with Microsoft Internet Explorer 8 and 9. ... ERROR >tests.test_views.TestHeaders.test_pagination_links >Tests that a :http:method:`get` request that would respond with a ... ERROR >tests.test_views.TestHeaders.test_post_location >Tests that a :http:method:`post` request responds with the correct ... ERROR >tests.test_views.TestSearch.test_search >Tests basic search using the :http:method:`get` method. ... FAIL >tests.test_views.TestSearch.test_search2 >Testing more search functionality. ... FAIL >tests.test_views.TestSearch.test_search_bad_arguments >Tests that search requests with bad parameters respond with an error ... ok >tests.test_views.TestSearch.test_search_boolean_formula >Tests for Boolean formulas of filters in a search query. ... FAIL >tests.test_views.TestSearch.test_search_dates >Test date parsing ... ERROR >====================================================================== >ERROR: tests.test_helpers.TestModelHelpers.test_primary_key_name >Test for determining the primary attribute of a model or instance. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_helpers.py", line 169, in test_primary_key_name > assert 'id' == primary_key_name(me) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_manager.TestAPIManager.test_create_api >Tests that the :meth:`flask_restless.manager.APIManager.create_api` >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_manager.py", line 205, in test_create_api > self.manager.create_api(self.Person, methods=['GET', 'POST']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_manager.TestAPIManager.test_different_collection_name >Tests that providing a different collection name exposes the API at >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_manager.py", line 279, in test_different_collection_name > collection_name='people') > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_manager.TestAPIManager.test_different_urls >Tests that establishing different URL endpoints for the same model >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_manager.py", line 603, in test_different_urls > url_prefix=url) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_manager.TestAPIManager.test_exclude_column_attributes >Test for specifying excluded columns as SQLAlchemy column attributes. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_manager.py", line 406, in test_exclude_column_attributes > response = self.app.get('/api/person/{0}'.format(person.id)) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/helpers.py", line 125, in new_func > return func(*args, **kw) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 778, in get > return self.open(*args, **kw) > File "/usr/lib/python2.7/site-packages/flask/testing.py", line 113, in open > follow_redirects=follow_redirects) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 751, in open > response = self.run_wsgi_app(environ, buffered=buffered) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 668, in run_wsgi_app > rv = run_wsgi_app(self.application, environ, buffered=buffered) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 871, in run_wsgi_app > app_rv = app(environ, start_response) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 2000, in __call__ > return self.wsgi_app(environ, start_response) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1991, in wsgi_app > response = self.make_response(self.handle_exception(e)) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1567, in handle_exception > reraise(exc_type, exc_value, tb) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app > response = self.full_dispatch_request() > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1641, in full_dispatch_request > rv = self.handle_user_exception(e) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1544, in handle_user_exception > reraise(exc_type, exc_value, tb) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1639, in full_dispatch_request > rv = self.dispatch_request() > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1625, in dispatch_request > return self.view_functions[rule.endpoint](**req.view_args) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 157, in decorator > return func(*args, **kw) > File "/usr/lib/python2.7/site-packages/mimerender.py", line 229, in wrapper > result = target(*args, **kwargs) > File "/usr/lib/python2.7/site-packages/flask/views.py", line 84, in view > return self.dispatch_request(*args, **kwargs) > File "/usr/lib/python2.7/site-packages/flask/views.py", line 149, in dispatch_request > return meth(*args, **kwargs) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 189, in wrapped > return func(*args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 1252, in get > instance = get_by(self.session, self.model, instid, self.primary_key) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 494, in get_by > primary_key) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 480, in query_by_primary_key > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_manager.TestAPIManager.test_exclude_columns >Tests that the ``exclude_columns`` argument specifies which columns >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_manager.py", line 557, in test_exclude_columns > url_prefix='/add') > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_manager.TestAPIManager.test_exclude_primary_key_column >Tests that trying to create a writable API while excluding the >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/usr/lib/python2.7/site-packages/nose/tools/nontrivial.py", line 60, in newfunc > func(*arg, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_manager.py", line 591, in test_exclude_primary_key_column > methods=['POST']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_manager.TestAPIManager.test_exclude_related >Test for specifying excluded columns on related models. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_manager.py", line 379, in test_exclude_related > response = self.app.get('/api/person/{0}'.format(person.id)) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/helpers.py", line 125, in new_func > return func(*args, **kw) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 778, in get > return self.open(*args, **kw) > File "/usr/lib/python2.7/site-packages/flask/testing.py", line 113, in open > follow_redirects=follow_redirects) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 751, in open > response = self.run_wsgi_app(environ, buffered=buffered) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 668, in run_wsgi_app > rv = run_wsgi_app(self.application, environ, buffered=buffered) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 871, in run_wsgi_app > app_rv = app(environ, start_response) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 2000, in __call__ > return self.wsgi_app(environ, start_response) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1991, in wsgi_app > response = self.make_response(self.handle_exception(e)) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1567, in handle_exception > reraise(exc_type, exc_value, tb) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app > response = self.full_dispatch_request() > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1641, in full_dispatch_request > rv = self.handle_user_exception(e) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1544, in handle_user_exception > reraise(exc_type, exc_value, tb) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1639, in full_dispatch_request > rv = self.dispatch_request() > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1625, in dispatch_request > return self.view_functions[rule.endpoint](**req.view_args) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 157, in decorator > return func(*args, **kw) > File "/usr/lib/python2.7/site-packages/mimerender.py", line 229, in wrapper > result = target(*args, **kwargs) > File "/usr/lib/python2.7/site-packages/flask/views.py", line 84, in view > return self.dispatch_request(*args, **kwargs) > File "/usr/lib/python2.7/site-packages/flask/views.py", line 149, in dispatch_request > return meth(*args, **kwargs) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 189, in wrapped > return func(*args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 1252, in get > instance = get_by(self.session, self.model, instid, self.primary_key) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 494, in get_by > primary_key) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 480, in query_by_primary_key > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_manager.TestAPIManager.test_expose_relations >Tests that relations are exposed at a URL which is a child of the >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_manager.py", line 689, in test_expose_relations > response = self.app.get('/api/person/1/computers') > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/helpers.py", line 125, in new_func > return func(*args, **kw) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 778, in get > return self.open(*args, **kw) > File "/usr/lib/python2.7/site-packages/flask/testing.py", line 113, in open > follow_redirects=follow_redirects) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 751, in open > response = self.run_wsgi_app(environ, buffered=buffered) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 668, in run_wsgi_app > rv = run_wsgi_app(self.application, environ, buffered=buffered) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 871, in run_wsgi_app > app_rv = app(environ, start_response) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 2000, in __call__ > return self.wsgi_app(environ, start_response) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1991, in wsgi_app > response = self.make_response(self.handle_exception(e)) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1567, in handle_exception > reraise(exc_type, exc_value, tb) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app > response = self.full_dispatch_request() > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1641, in full_dispatch_request > rv = self.handle_user_exception(e) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1544, in handle_user_exception > reraise(exc_type, exc_value, tb) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1639, in full_dispatch_request > rv = self.dispatch_request() > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1625, in dispatch_request > return self.view_functions[rule.endpoint](**req.view_args) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 157, in decorator > return func(*args, **kw) > File "/usr/lib/python2.7/site-packages/mimerender.py", line 229, in wrapper > result = target(*args, **kwargs) > File "/usr/lib/python2.7/site-packages/flask/views.py", line 84, in view > return self.dispatch_request(*args, **kwargs) > File "/usr/lib/python2.7/site-packages/flask/views.py", line 149, in dispatch_request > return meth(*args, **kwargs) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 189, in wrapped > return func(*args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 1252, in get > instance = get_by(self.session, self.model, instid, self.primary_key) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 494, in get_by > primary_key) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 480, in query_by_primary_key > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_manager.TestAPIManager.test_include_column_attributes >Test for specifying included columns as SQLAlchemy column attributes. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_manager.py", line 356, in test_include_column_attributes > response = self.app.get('/api/person/{0}'.format(person.id)) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/helpers.py", line 125, in new_func > return func(*args, **kw) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 778, in get > return self.open(*args, **kw) > File "/usr/lib/python2.7/site-packages/flask/testing.py", line 113, in open > follow_redirects=follow_redirects) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 751, in open > response = self.run_wsgi_app(environ, buffered=buffered) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 668, in run_wsgi_app > rv = run_wsgi_app(self.application, environ, buffered=buffered) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 871, in run_wsgi_app > app_rv = app(environ, start_response) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 2000, in __call__ > return self.wsgi_app(environ, start_response) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1991, in wsgi_app > response = self.make_response(self.handle_exception(e)) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1567, in handle_exception > reraise(exc_type, exc_value, tb) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app > response = self.full_dispatch_request() > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1641, in full_dispatch_request > rv = self.handle_user_exception(e) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1544, in handle_user_exception > reraise(exc_type, exc_value, tb) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1639, in full_dispatch_request > rv = self.dispatch_request() > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1625, in dispatch_request > return self.view_functions[rule.endpoint](**req.view_args) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 157, in decorator > return func(*args, **kw) > File "/usr/lib/python2.7/site-packages/mimerender.py", line 229, in wrapper > result = target(*args, **kwargs) > File "/usr/lib/python2.7/site-packages/flask/views.py", line 84, in view > return self.dispatch_request(*args, **kwargs) > File "/usr/lib/python2.7/site-packages/flask/views.py", line 149, in dispatch_request > return meth(*args, **kwargs) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 189, in wrapped > return func(*args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 1252, in get > instance = get_by(self.session, self.model, instid, self.primary_key) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 494, in get_by > primary_key) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 480, in query_by_primary_key > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_manager.TestAPIManager.test_include_columns >Tests that the `include_columns` argument specifies which columns to >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_manager.py", line 433, in test_include_columns > url_prefix='/add') > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_manager.TestAPIManager.test_include_methods >Tests that the `include_methods` argument specifies which methods to >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_manager.py", line 488, in test_include_methods > response = self.app.get('/included/person/{0}'.format(person.id)) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/helpers.py", line 125, in new_func > return func(*args, **kw) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 778, in get > return self.open(*args, **kw) > File "/usr/lib/python2.7/site-packages/flask/testing.py", line 113, in open > follow_redirects=follow_redirects) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 751, in open > response = self.run_wsgi_app(environ, buffered=buffered) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 668, in run_wsgi_app > rv = run_wsgi_app(self.application, environ, buffered=buffered) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 871, in run_wsgi_app > app_rv = app(environ, start_response) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 2000, in __call__ > return self.wsgi_app(environ, start_response) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1991, in wsgi_app > response = self.make_response(self.handle_exception(e)) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1567, in handle_exception > reraise(exc_type, exc_value, tb) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app > response = self.full_dispatch_request() > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1641, in full_dispatch_request > rv = self.handle_user_exception(e) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1544, in handle_user_exception > reraise(exc_type, exc_value, tb) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1639, in full_dispatch_request > rv = self.dispatch_request() > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1625, in dispatch_request > return self.view_functions[rule.endpoint](**req.view_args) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 157, in decorator > return func(*args, **kw) > File "/usr/lib/python2.7/site-packages/mimerender.py", line 229, in wrapper > result = target(*args, **kwargs) > File "/usr/lib/python2.7/site-packages/flask/views.py", line 84, in view > return self.dispatch_request(*args, **kwargs) > File "/usr/lib/python2.7/site-packages/flask/views.py", line 149, in dispatch_request > return meth(*args, **kwargs) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 189, in wrapped > return func(*args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 1252, in get > instance = get_by(self.session, self.model, instid, self.primary_key) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 494, in get_by > primary_key) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 480, in query_by_primary_key > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_manager.TestAPIManager.test_include_related >Test for specifying included columns on related models. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_manager.py", line 330, in test_include_related > response = self.app.get('/api/person/{0}'.format(person.id)) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/helpers.py", line 125, in new_func > return func(*args, **kw) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 778, in get > return self.open(*args, **kw) > File "/usr/lib/python2.7/site-packages/flask/testing.py", line 113, in open > follow_redirects=follow_redirects) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 751, in open > response = self.run_wsgi_app(environ, buffered=buffered) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 668, in run_wsgi_app > rv = run_wsgi_app(self.application, environ, buffered=buffered) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 871, in run_wsgi_app > app_rv = app(environ, start_response) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 2000, in __call__ > return self.wsgi_app(environ, start_response) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1991, in wsgi_app > response = self.make_response(self.handle_exception(e)) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1567, in handle_exception > reraise(exc_type, exc_value, tb) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app > response = self.full_dispatch_request() > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1641, in full_dispatch_request > rv = self.handle_user_exception(e) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1544, in handle_user_exception > reraise(exc_type, exc_value, tb) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1639, in full_dispatch_request > rv = self.dispatch_request() > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1625, in dispatch_request > return self.view_functions[rule.endpoint](**req.view_args) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 157, in decorator > return func(*args, **kw) > File "/usr/lib/python2.7/site-packages/mimerender.py", line 229, in wrapper > result = target(*args, **kwargs) > File "/usr/lib/python2.7/site-packages/flask/views.py", line 84, in view > return self.dispatch_request(*args, **kwargs) > File "/usr/lib/python2.7/site-packages/flask/views.py", line 149, in dispatch_request > return meth(*args, **kwargs) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 189, in wrapped > return func(*args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 1252, in get > instance = get_by(self.session, self.model, instid, self.primary_key) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 494, in get_by > primary_key) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 480, in query_by_primary_key > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_manager.TestAPIManager.test_included_method_returns_object >Tests that objects are serialized when returned from a method listed >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_manager.py", line 530, in test_included_method_returns_object > response = self.app.get('/api/person/1') > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/helpers.py", line 125, in new_func > return func(*args, **kw) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 778, in get > return self.open(*args, **kw) > File "/usr/lib/python2.7/site-packages/flask/testing.py", line 113, in open > follow_redirects=follow_redirects) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 751, in open > response = self.run_wsgi_app(environ, buffered=buffered) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 668, in run_wsgi_app > rv = run_wsgi_app(self.application, environ, buffered=buffered) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 871, in run_wsgi_app > app_rv = app(environ, start_response) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 2000, in __call__ > return self.wsgi_app(environ, start_response) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1991, in wsgi_app > response = self.make_response(self.handle_exception(e)) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1567, in handle_exception > reraise(exc_type, exc_value, tb) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app > response = self.full_dispatch_request() > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1641, in full_dispatch_request > rv = self.handle_user_exception(e) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1544, in handle_user_exception > reraise(exc_type, exc_value, tb) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1639, in full_dispatch_request > rv = self.dispatch_request() > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1625, in dispatch_request > return self.view_functions[rule.endpoint](**req.view_args) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 157, in decorator > return func(*args, **kw) > File "/usr/lib/python2.7/site-packages/mimerender.py", line 229, in wrapper > result = target(*args, **kwargs) > File "/usr/lib/python2.7/site-packages/flask/views.py", line 84, in view > return self.dispatch_request(*args, **kwargs) > File "/usr/lib/python2.7/site-packages/flask/views.py", line 149, in dispatch_request > return meth(*args, **kwargs) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 189, in wrapped > return func(*args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 1252, in get > instance = get_by(self.session, self.model, instid, self.primary_key) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 494, in get_by > primary_key) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 480, in query_by_primary_key > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_manager.TestAPIManager.test_max_results_per_page >Test for specifying the ``max_results_per_page`` keyword argument. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_manager.py", line 667, in test_max_results_per_page > max_results_per_page=15) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_manager.TestFSA.test_flask_sqlalchemy >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 384, in tearDown > try_run(self.inst, ('teardown', 'tearDown')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/helpers.py", line 83, in inner > return test(*args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_manager.py", line 799, in tearDown > unregister_fsa_session_signals() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/helpers.py", line 105, in unregister_fsa_session_signals > flask_sa._SessionSignalEvents.session_signal_before_commit) >AttributeError: type object '_SessionSignalEvents' has no attribute 'session_signal_before_commit' >====================================================================== >ERROR: tests.test_manager.TestFSA.test_init_app >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 384, in tearDown > try_run(self.inst, ('teardown', 'tearDown')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/helpers.py", line 83, in inner > return test(*args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_manager.py", line 799, in tearDown > unregister_fsa_session_signals() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/helpers.py", line 105, in unregister_fsa_session_signals > flask_sa._SessionSignalEvents.session_signal_before_commit) >AttributeError: type object '_SessionSignalEvents' has no attribute 'session_signal_before_commit' >====================================================================== >ERROR: tests.test_manager.TestFSA.test_init_app_split_initialization >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 384, in tearDown > try_run(self.inst, ('teardown', 'tearDown')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/helpers.py", line 83, in inner > return test(*args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_manager.py", line 799, in tearDown > unregister_fsa_session_signals() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/helpers.py", line 105, in unregister_fsa_session_signals > flask_sa._SessionSignalEvents.session_signal_before_commit) >AttributeError: type object '_SessionSignalEvents' has no attribute 'session_signal_before_commit' >====================================================================== >ERROR: tests.test_manager.TestSerialization.test_custom_serializer_get >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_manager.py", line 735, in test_custom_serializer_get > response = self.app.get('/api/person/1') > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/helpers.py", line 125, in new_func > return func(*args, **kw) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 778, in get > return self.open(*args, **kw) > File "/usr/lib/python2.7/site-packages/flask/testing.py", line 113, in open > follow_redirects=follow_redirects) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 751, in open > response = self.run_wsgi_app(environ, buffered=buffered) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 668, in run_wsgi_app > rv = run_wsgi_app(self.application, environ, buffered=buffered) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 871, in run_wsgi_app > app_rv = app(environ, start_response) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 2000, in __call__ > return self.wsgi_app(environ, start_response) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1991, in wsgi_app > response = self.make_response(self.handle_exception(e)) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1567, in handle_exception > reraise(exc_type, exc_value, tb) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app > response = self.full_dispatch_request() > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1641, in full_dispatch_request > rv = self.handle_user_exception(e) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1544, in handle_user_exception > reraise(exc_type, exc_value, tb) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1639, in full_dispatch_request > rv = self.dispatch_request() > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1625, in dispatch_request > return self.view_functions[rule.endpoint](**req.view_args) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 157, in decorator > return func(*args, **kw) > File "/usr/lib/python2.7/site-packages/mimerender.py", line 229, in wrapper > result = target(*args, **kwargs) > File "/usr/lib/python2.7/site-packages/flask/views.py", line 84, in view > return self.dispatch_request(*args, **kwargs) > File "/usr/lib/python2.7/site-packages/flask/views.py", line 149, in dispatch_request > return meth(*args, **kwargs) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 189, in wrapped > return func(*args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 1252, in get > instance = get_by(self.session, self.model, instid, self.primary_key) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 494, in get_by > primary_key) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 480, in query_by_primary_key > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_manager.TestSerialization.test_custom_serializer_post >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_manager.py", line 743, in test_custom_serializer_post > deserializer=self.deserializer) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_processors.TestProcessors.test_change_instance_id >Tests that return values from preprocessors set the instance ID. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_processors.py", line 89, in test_change_instance_id > response = self.app.get('/api/person/1') > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/helpers.py", line 125, in new_func > return func(*args, **kw) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 778, in get > return self.open(*args, **kw) > File "/usr/lib/python2.7/site-packages/flask/testing.py", line 113, in open > follow_redirects=follow_redirects) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 751, in open > response = self.run_wsgi_app(environ, buffered=buffered) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 668, in run_wsgi_app > rv = run_wsgi_app(self.application, environ, buffered=buffered) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 871, in run_wsgi_app > app_rv = app(environ, start_response) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 2000, in __call__ > return self.wsgi_app(environ, start_response) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1991, in wsgi_app > response = self.make_response(self.handle_exception(e)) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1567, in handle_exception > reraise(exc_type, exc_value, tb) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app > response = self.full_dispatch_request() > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1641, in full_dispatch_request > rv = self.handle_user_exception(e) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1544, in handle_user_exception > reraise(exc_type, exc_value, tb) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1639, in full_dispatch_request > rv = self.dispatch_request() > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1625, in dispatch_request > return self.view_functions[rule.endpoint](**req.view_args) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 157, in decorator > return func(*args, **kw) > File "/usr/lib/python2.7/site-packages/mimerender.py", line 229, in wrapper > result = target(*args, **kwargs) > File "/usr/lib/python2.7/site-packages/flask/views.py", line 84, in view > return self.dispatch_request(*args, **kwargs) > File "/usr/lib/python2.7/site-packages/flask/views.py", line 149, in dispatch_request > return meth(*args, **kwargs) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 189, in wrapped > return func(*args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 1252, in get > instance = get_by(self.session, self.model, instid, self.primary_key) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 494, in get_by > primary_key) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 480, in query_by_primary_key > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_processors.TestProcessors.test_delete_many_preprocessor >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_processors.py", line 348, in test_delete_many_preprocessor > allow_delete_many=True, preprocessors=pre) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_processors.TestProcessors.test_delete_preprocessor >Tests for using a preprocessor with :http:method:`delete` requests. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_processors.py", line 221, in test_delete_preprocessor > preprocessors=pre) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_processors.TestProcessors.test_delete_single >Test for the DELETE_SINGLE preprocessor. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_processors.py", line 327, in test_delete_single > response = self.app.delete('/api/person/2') > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/helpers.py", line 125, in new_func > return func(*args, **kw) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 803, in delete > return self.open(*args, **kw) > File "/usr/lib/python2.7/site-packages/flask/testing.py", line 113, in open > follow_redirects=follow_redirects) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 751, in open > response = self.run_wsgi_app(environ, buffered=buffered) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 668, in run_wsgi_app > rv = run_wsgi_app(self.application, environ, buffered=buffered) > File "/usr/lib/python2.7/site-packages/werkzeug/test.py", line 871, in run_wsgi_app > app_rv = app(environ, start_response) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 2000, in __call__ > return self.wsgi_app(environ, start_response) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1991, in wsgi_app > response = self.make_response(self.handle_exception(e)) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1567, in handle_exception > reraise(exc_type, exc_value, tb) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app > response = self.full_dispatch_request() > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1641, in full_dispatch_request > rv = self.handle_user_exception(e) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1544, in handle_user_exception > reraise(exc_type, exc_value, tb) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1639, in full_dispatch_request > rv = self.dispatch_request() > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1625, in dispatch_request > return self.view_functions[rule.endpoint](**req.view_args) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 157, in decorator > return func(*args, **kw) > File "/usr/lib/python2.7/site-packages/mimerender.py", line 229, in wrapper > result = target(*args, **kwargs) > File "/usr/lib/python2.7/site-packages/flask/views.py", line 84, in view > return self.dispatch_request(*args, **kwargs) > File "/usr/lib/python2.7/site-packages/flask/views.py", line 149, in dispatch_request > return meth(*args, **kwargs) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 189, in wrapped > return func(*args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/views.py", line 1374, in delete > inst = get_by(self.session, self.model, instid, self.primary_key) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 494, in get_by > primary_key) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 480, in query_by_primary_key > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_processors.TestProcessors.test_get_many_postprocessor >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_processors.py", line 141, in test_get_many_postprocessor > postprocessors=post) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_processors.TestProcessors.test_get_many_preprocessor >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_processors.py", line 156, in test_get_many_preprocessor > preprocessors=pre) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_processors.TestProcessors.test_get_single_preprocessor >Tests :http:method:`get` requests for a single object with >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_processors.py", line 52, in test_get_single_preprocessor > preprocessors=pre) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_processors.TestProcessors.test_patch_many_preprocessor >Tests for using a preprocessor with :http:method:`patch` requests >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_processors.py", line 380, in test_patch_many_preprocessor > preprocessors=pre) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_processors.TestProcessors.test_patch_single_preprocessor >Tests for using a preprocessor with :http:method:`patch` requests. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_processors.py", line 254, in test_patch_single_preprocessor > preprocessors=pre) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_processors.TestProcessors.test_patch_single_preprocessor2 >Tests for using a preprocessor with :http:method:`patch` requests. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_processors.py", line 282, in test_patch_single_preprocessor2 > preprocessors=pre) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_processors.TestProcessors.test_post_preprocessor >Tests :http:method:`post` requests with a preprocessor function. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_processors.py", line 190, in test_post_preprocessor > preprocessors=dict(POST=[add_parameter])) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_processors.TestProcessors.test_processor_no_change >Tests :http:method:`post` requests with a preprocessor function. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_processors.py", line 414, in test_processor_no_change > GET_MANY=[no_change])) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_search.TestOperators.test_has_and_any >Tests for the ``"has"`` and ``"any"`` operators. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_search.py", line 266, in test_has_and_any > result = search(self.session, self.Person, d) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/search.py", line 587, in search > query = create_query(session, model, search_params, _ignore_order_by) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/search.py", line 549, in create_query > _ignore_order_by) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/search.py", line 505, in create_query > pks = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_search.TestOperators.test_has_and_any_nested_suboperators >Tests for the ``"has"`` and ``"any"`` operators with nested >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_search.py", line 349, in test_has_and_any_nested_suboperators > result = search(self.session, self.Person, d) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/search.py", line 587, in search > query = create_query(session, model, search_params, _ignore_order_by) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/search.py", line 549, in create_query > _ignore_order_by) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/search.py", line 505, in create_query > pks = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_search.TestOperators.test_has_and_any_suboperators >Tests for the ``"has"`` and ``"any"`` operators with suboperators. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_search.py", line 304, in test_has_and_any_suboperators > result = search(self.session, self.Person, d) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/search.py", line 587, in search > query = create_query(session, model, search_params, _ignore_order_by) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/search.py", line 549, in create_query > _ignore_order_by) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/search.py", line 505, in create_query > pks = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_search.TestOperators.test_operators >Tests for each of the individual operators in >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_search.py", line 189, in test_operators > result = search(self.session, self.Person, d) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/search.py", line 587, in search > query = create_query(session, model, search_params, _ignore_order_by) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/search.py", line 549, in create_query > _ignore_order_by) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/search.py", line 505, in create_query > pks = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_search.TestQueryCreation.test_basic_query >Tests for basic query correctness. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_search.py", line 49, in test_basic_query > query = create_query(self.session, self.Person, d) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/search.py", line 549, in create_query > _ignore_order_by) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/search.py", line 505, in create_query > pks = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_search.TestQueryCreation.test_dict_same_as_search_params >Tests that creating a query using a dictionary results in the same >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_search.py", line 42, in test_dict_same_as_search_params > query_d = create_query(self.session, self.Person, d) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/search.py", line 549, in create_query > _ignore_order_by) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/search.py", line 505, in create_query > pks = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_search.TestQueryCreation.test_empty_search >Tests that a query with no search parameters returns everything. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_search.py", line 31, in test_empty_search > query = create_query(self.session, self.Person, {}) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/search.py", line 549, in create_query > _ignore_order_by) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/search.py", line 505, in create_query > pks = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_search.TestQueryCreation.test_query_related_field >Test for making a query with respect to a related field. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_search.py", line 87, in test_query_related_field > query = create_query(self.session, self.Person, d) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/search.py", line 549, in create_query > _ignore_order_by) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/search.py", line 505, in create_query > pks = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_search.TestSearch.test_search >Tests that asking for a single result raises an error unless the >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_search.py", line 378, in test_search > d) > File "/usr/lib64/python2.7/unittest/case.py", line 511, in assertRaises > callableObj(*args, **kwargs) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/search.py", line 587, in search > query = create_query(session, model, search_params, _ignore_order_by) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/search.py", line 549, in create_query > _ignore_order_by) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/search.py", line 505, in create_query > pks = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_alternate_primary_key >Tests that models with primary keys which are not ``id`` columns are >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_delete >Test for deleting an instance of the database using the >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_delete_absent_instance >Test that deleting an instance of the model which does not exist >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_delete_from_relation >Tests that a :http:method:`delete` request to a related instance >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_delete_integrity_error >Tests that an :exc:`IntegrityError` raised in a >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_delete_many >Tests for deleting many instances of a collection by using a search >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_disallow_delete_many >Tests for deleting many instances of a collection by using a search >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_disallow_patch_many >Tests that disallowing "patch many" requests responds with a >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_duplicate_post >Tests for making a :http:method:`post` request with data that >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_get_callable_query_attribute >Tests that a callable model.query attribute is being used >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_get_string_pk >Tests for getting a row which has a string primary key, including >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_jsonp >Test for JSON-P callbacks. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_num_results >Tests that a request for (a subset of) all instances of a model >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_pagination >Tests for pagination of long result sets. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_patch_404 >Tests that making a :http:method:`patch` request to an instance >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_patch_add_submodels >Test for updating a single instance of the model by adding a list of >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_patch_autodelete_submodel >Tests the automatic deletion of entries marked with the >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_patch_bad_parameter >Tests that attempting to make a :http:method:`patch` request with a >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_patch_duplicate >Test for assigning a list containing duplicate items >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_patch_empty >Test for making a :http:method:`patch` request with no data. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_patch_existing_single >Test for adding a single existing object to a one-to-one >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_patch_integrity_error >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_patch_m2m >Test for updating a model with a many to many relation that uses >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_patch_many >Test for updating a collection of instances of the model using the >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_patch_many_with_filter >Test for updating a collection of instances of the model using a >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_patch_new_single >Test for adding a single new object to a one-to-one relationship >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_patch_remove_m2m >Test for removing a relation on a model that uses an association >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_patch_remove_submodel >Test for updating a single instance of the model by removing a >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_patch_set_submodel >Test for assigning a list to a relation of a model using >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_patch_update_relations >Test for posting a new model and simultaneously adding related >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_patch_with_hybrid_property >Tests that a hybrid property can be correctly posted from a client. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_patch_with_single_submodel >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_post >Test for creating a new instance of the database model using the >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_post_bad_parameter >Tests that attempting to make a :http:method:`post` request with a >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_post_date_functions >Tests that ``'CURRENT_TIMESTAMP'`` gets converted into a datetime >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_post_empty_date >Tests that attempting to assign an empty date string to a date field >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_post_form_preprocessor >Tests POST method decoration using a custom function. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_post_interval_functions >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_post_m2m >Test for creating a new instance of the database model that has a >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_post_nullable_date >Tests the creation of a model with a nullable date field. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_post_unicode_primary_key >Test for creating a new instance of the database model using the >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_post_with_single_submodel >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_post_with_submodels >Tests the creation of a model with a related field. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_put_same_as_patch >Tests that :http:method:`put` requests are the same as >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_results_per_page >Tests that the client can correctly specify the number of results >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_serialize_time >Test for getting the JSON representation of a time field. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_set_hybrid_property >Tests that a hybrid property can be correctly set by a client. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_single_update >Test for updating a single instance of the model using the >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestAPI.test_specified_primary_key >Tests that models with more than one primary key are >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 308, in setUp > methods=['GET', 'PATCH', 'POST', 'DELETE']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestFSAModel.test_get >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 384, in tearDown > try_run(self.inst, ('teardown', 'tearDown')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/helpers.py", line 83, in inner > return test(*args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 106, in tearDown > unregister_fsa_session_signals() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/helpers.py", line 105, in unregister_fsa_session_signals > flask_sa._SessionSignalEvents.session_signal_before_commit) >AttributeError: type object '_SessionSignalEvents' has no attribute 'session_signal_before_commit' >====================================================================== >ERROR: tests.test_views.TestHeaders.test_accept >Tests that the server responds to the ``Accept`` with a response of >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 1570, in setUp > self.manager.create_api(self.Person, methods=['GET', 'POST', 'PATCH']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestHeaders.test_content_type >Tests that the server responds only to requests with a JSON >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 1570, in setUp > self.manager.create_api(self.Person, methods=['GET', 'POST', 'PATCH']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestHeaders.test_content_type_msie >Tests for compatibility with Microsoft Internet Explorer 8 and 9. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 1570, in setUp > self.manager.create_api(self.Person, methods=['GET', 'POST', 'PATCH']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestHeaders.test_pagination_links >Tests that a :http:method:`get` request that would respond with a >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 1570, in setUp > self.manager.create_api(self.Person, methods=['GET', 'POST', 'PATCH']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestHeaders.test_post_location >Tests that a :http:method:`post` request responds with the correct >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 381, in setUp > try_run(self.inst, ('setup', 'setUp')) > File "/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run > return func() > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 1570, in setUp > self.manager.create_api(self.Person, methods=['GET', 'POST', 'PATCH']) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 698, in create_api > blueprint = self.create_api_blueprint(app=app, *args, **kw) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/manager.py", line 566, in create_api_blueprint > pk_name = primary_key or primary_key_name(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 232, in primary_key_name > pk_names = primary_key_names(model) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/flask_restless/helpers.py", line 216, in primary_key_names > and isinstance(field.property, ColumnProperty) > File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 314, in __getattr__ > attribute) >AttributeError: Neither 'hybrid_property' object nor 'ExprComparator' object associated with Person.is_above_21 has an attribute 'property' >====================================================================== >ERROR: tests.test_views.TestSearch.test_search_dates >Test date parsing >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 1893, in test_search_dates > assert loads(resp.data)['name'] == u'Lincoln' >KeyError: 'name' >====================================================================== >FAIL: tests.test_processors.TestProcessors.test_add_filters >Test for adding a filter to a :http:method:`get` request for a >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_processors.py", line 468, in test_add_filters > assert 200 == response.status_code >AssertionError >====================================================================== >FAIL: tests.test_views.TestFunctionAPI.test_jsonp >Test for JSON-P callbacks. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 273, in test_jsonp > assert response.status_code == 200 >AssertionError >====================================================================== >FAIL: tests.test_views.TestSearch.test_search >Tests basic search using the :http:method:`get` method. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 1739, in test_search > assert resp.status_code == 200 >AssertionError >====================================================================== >FAIL: tests.test_views.TestSearch.test_search2 >Testing more search functionality. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 1842, in test_search2 > assert resp.status_code == 200 >AssertionError >====================================================================== >FAIL: tests.test_views.TestSearch.test_search_boolean_formula >Tests for Boolean formulas of filters in a search query. >---------------------------------------------------------------------- >Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest > self.test(*self.arg) > File "/builddir/build/BUILD/flask-restless-bbb2f0a1e09821d30dcb2d52a9cdd9026c028b5f/tests/test_views.py", line 1928, in test_search_boolean_formula > assert 200 == response.status_code >AssertionError >---------------------------------------------------------------------- >Ran 154 tests in 12.056s >FAILED (failures=5, errors=97, skipped=2) >Test failed: <unittest.runner.TextTestResult run=154 errors=97 failures=5> >error: Test failed: <unittest.runner.TextTestResult run=154 errors=97 failures=5> >RPM build errors: >error: Bad exit status from /var/tmp/rpm-tmp.CP1MEm (%check) > Bad exit status from /var/tmp/rpm-tmp.CP1MEm (%check) >Child return code was: 1 >EXCEPTION: [Error()] >Traceback (most recent call last): > File "/usr/lib/python3.5/site-packages/mockbuild/trace_decorator.py", line 89, in trace > result = func(*args, **kw) > File "/usr/lib/python3.5/site-packages/mockbuild/util.py", line 578, in do > raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) >mockbuild.exception.Error: Command failed. See logs for output. > # bash --login -c /usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-flask-restless.spec
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1424145
: 1253724 |
1253725
|
1253726