Skip to content

Instantly share code, notes, and snippets.

@mweinelt
Last active March 8, 2023 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mweinelt/b6ff177708e6317881b7c981743e1054 to your computer and use it in GitHub Desktop.
Save mweinelt/b6ff177708e6317881b7c981743e1054 to your computer and use it in GitHub Desktop.
pecan> ____________ TestJsonifySQLAlchemyGenericEncoder.test_result_proxy _____________
pecan>
pecan> self = <pecan.tests.test_jsonify.TestJsonifySQLAlchemyGenericEncoder testMethod=test_result_proxy>
pecan>
pecan> def setUp(self):
pecan> super(TestJsonifySQLAlchemyGenericEncoder, self).setUp()
pecan> if not create_engine:
pecan> self.create_fake_proxies()
pecan> else:
pecan> > self.create_sa_proxies()
pecan>
pecan> pecan/tests/test_jsonify.py:125:
pecan> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pecan> pecan/tests/test_jsonify.py:193: in create_sa_proxies
pecan> orm.mapper(User, user_table)
pecan> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pecan>
pecan> arg = (<class 'pecan.tests.test_jsonify.TestJsonifySQLAlchemyGenericEncoder.create_sa_proxies.<locals>.User'>, Table('user',...n('first_name', Unicode(length=25), table=<user>), Column('last_name', Unicode(length=25), table=<user>), schema=None))
pecan> kw = {}
pecan>
pecan> def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn:
pecan> """Placeholder for the now-removed ``mapper()`` function.
pecan>
pecan> Classical mappings should be performed using the
pecan> :meth:`_orm.registry.map_imperatively` method.
pecan>
pecan> This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case
pecan> of using the ``mapper()`` function as a target for ORM event listeners,
pecan> which failed to be marked as deprecated in the 1.4 series.
pecan>
pecan> Global ORM mapper listeners should instead use the :class:`_orm.Mapper`
pecan> class as the target.
pecan>
pecan> .. versionchanged:: 2.0 The ``mapper()`` function was removed; the
pecan> symbol remains temporarily as a placeholder for the event listening
pecan> use case.
pecan>
pecan> """
pecan> > raise InvalidRequestError(
pecan> "The 'sqlalchemy.orm.mapper()' function is removed as of "
pecan> "SQLAlchemy 2.0. Use the "
pecan> "'sqlalchemy.orm.registry.map_imperatively()` "
pecan> "method of the ``sqlalchemy.orm.registry`` class to perform "
pecan> "classical mapping."
pecan> )
pecan> E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping.
pecan>
pecan> /nix/store/l2sk4k91jkqj3l4x58jd5nlk5168mwfh-python3.11-SQLAlchemy-2.0.4/lib/python3.11/site-packages/sqlalchemy/orm/_orm_constructors.py:1880: InvalidRequestError
pecan> ______________ TestJsonifySQLAlchemyGenericEncoder.test_row_proxy ______________
pecan>
pecan> self = <pecan.tests.test_jsonify.TestJsonifySQLAlchemyGenericEncoder testMethod=test_row_proxy>
pecan>
pecan> def setUp(self):
pecan> super(TestJsonifySQLAlchemyGenericEncoder, self).setUp()
pecan> if not create_engine:
pecan> self.create_fake_proxies()
pecan> else:
pecan> > self.create_sa_proxies()
pecan>
pecan> pecan/tests/test_jsonify.py:125:
pecan> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pecan> pecan/tests/test_jsonify.py:193: in create_sa_proxies
pecan> orm.mapper(User, user_table)
pecan> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pecan>
pecan> arg = (<class 'pecan.tests.test_jsonify.TestJsonifySQLAlchemyGenericEncoder.create_sa_proxies.<locals>.User'>, Table('user',...n('first_name', Unicode(length=25), table=<user>), Column('last_name', Unicode(length=25), table=<user>), schema=None))
pecan> kw = {}
pecan>
pecan> def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn:
pecan> """Placeholder for the now-removed ``mapper()`` function.
pecan>
pecan> Classical mappings should be performed using the
pecan> :meth:`_orm.registry.map_imperatively` method.
pecan>
pecan> This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case
pecan> of using the ``mapper()`` function as a target for ORM event listeners,
pecan> which failed to be marked as deprecated in the 1.4 series.
pecan>
pecan> Global ORM mapper listeners should instead use the :class:`_orm.Mapper`
pecan> class as the target.
pecan>
pecan> .. versionchanged:: 2.0 The ``mapper()`` function was removed; the
pecan> symbol remains temporarily as a placeholder for the event listening
pecan> use case.
pecan>
pecan> """
pecan> > raise InvalidRequestError(
pecan> "The 'sqlalchemy.orm.mapper()' function is removed as of "
pecan> "SQLAlchemy 2.0. Use the "
pecan> "'sqlalchemy.orm.registry.map_imperatively()` "
pecan> "method of the ``sqlalchemy.orm.registry`` class to perform "
pecan> "classical mapping."
pecan> )
pecan> E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping.
pecan>
pecan> /nix/store/l2sk4k91jkqj3l4x58jd5nlk5168mwfh-python3.11-SQLAlchemy-2.0.4/lib/python3.11/site-packages/sqlalchemy/orm/_orm_constructors.py:1880: InvalidRequestError
pecan> ______________ TestJsonifySQLAlchemyGenericEncoder.test_sa_object ______________
pecan>
pecan> self = <pecan.tests.test_jsonify.TestJsonifySQLAlchemyGenericEncoder testMethod=test_sa_object>
pecan>
pecan> def setUp(self):
pecan> super(TestJsonifySQLAlchemyGenericEncoder, self).setUp()
pecan> if not create_engine:
pecan> self.create_fake_proxies()
pecan> else:
pecan> > self.create_sa_proxies()
pecan>
pecan> pecan/tests/test_jsonify.py:125:
pecan> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pecan> pecan/tests/test_jsonify.py:193: in create_sa_proxies
pecan> orm.mapper(User, user_table)
pecan> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pecan>
pecan> arg = (<class 'pecan.tests.test_jsonify.TestJsonifySQLAlchemyGenericEncoder.create_sa_proxies.<locals>.User'>, Table('user',...n('first_name', Unicode(length=25), table=<user>), Column('last_name', Unicode(length=25), table=<user>), schema=None))
pecan> kw = {}
pecan>
pecan> def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn:
pecan> """Placeholder for the now-removed ``mapper()`` function.
pecan>
pecan> Classical mappings should be performed using the
pecan> :meth:`_orm.registry.map_imperatively` method.
pecan>
pecan> This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case
pecan> of using the ``mapper()`` function as a target for ORM event listeners,
pecan> which failed to be marked as deprecated in the 1.4 series.
pecan>
pecan> Global ORM mapper listeners should instead use the :class:`_orm.Mapper`
pecan> class as the target.
pecan>
pecan> .. versionchanged:: 2.0 The ``mapper()`` function was removed; the
pecan> symbol remains temporarily as a placeholder for the event listening
pecan> use case.
pecan>
pecan> """
pecan> > raise InvalidRequestError(
pecan> "The 'sqlalchemy.orm.mapper()' function is removed as of "
pecan> "SQLAlchemy 2.0. Use the "
pecan> "'sqlalchemy.orm.registry.map_imperatively()` "
pecan> "method of the ``sqlalchemy.orm.registry`` class to perform "
pecan> "classical mapping."
pecan> )
pecan> E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping.
pecan>
pecan> /nix/store/l2sk4k91jkqj3l4x58jd5nlk5168mwfh-python3.11-SQLAlchemy-2.0.4/lib/python3.11/site-packages/sqlalchemy/orm/_orm_constructors.py:1880: InvalidRequestError
pecan> =============================== warnings summary ===============================
pecan> pecan/core.py:331
pecan> /build/pecan-1.4.2/pecan/core.py:331: DeprecationWarning: invalid escape sequence '\*'
pecan> '''
pecan>
pecan> ../../nix/store/k3xny3lh1l8j1hfa6bqgxxr12z4rpyyi-python3.11-webob-1.8.7/lib/python3.11/site-packages/webob/compat.py:5
pecan> /nix/store/k3xny3lh1l8j1hfa6bqgxxr12z4rpyyi-python3.11-webob-1.8.7/lib/python3.11/site-packages/webob/compat.py:5: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
pecan> from cgi import parse_header
pecan>
pecan> pecan/routing.py:49
pecan> /build/pecan-1.4.2/pecan/routing.py:49: DeprecationWarning: invalid escape sequence '\('
pecan> '^[0-9a-zA-Z-_$\(\)\.~!,;:*+@=]+$', route
pecan>
pecan> pecan/middleware/debug.py:24
pecan> /build/pecan-1.4.2/pecan/middleware/debug.py:24: DeprecationWarning: invalid escape sequence '\g'
pecan> yield self.body_re.sub(b('\g<1>%s' % __CONFIG_HELP__), part)
pecan>
pecan> pecan/tests/test_conf.py::TestConf::test_config_from_file
pecan> pecan/tests/test_conf.py::TestConf::test_config_illegal_ids
pecan> pecan/tests/test_conf.py::TestConf::test_config_with_bad_import
pecan> pecan/tests/test_conf.py::TestConf::test_config_with_non_package_relative_import
pecan> pecan/tests/test_conf.py::TestConf::test_update_force_dict
pecan> pecan/tests/test_conf.py::TestConf::test_update_set_config
pecan> pecan/tests/test_conf.py::TestConf::test_update_set_default_config
pecan> pecan/tests/test_conf.py::TestGlobalConfig::test_overwrite_from_file
pecan> pecan/tests/test_conf.py::TestGlobalConfig::test_paint_from_file
pecan> <frozen importlib._bootstrap>:283: DeprecationWarning: the load_module() method is deprecated and slated for removal in Python 3.12; use exec_module() instead
pecan>
pecan> pecan/tests/test_no_thread_locals.py::TestRestController::test_custom_method_type
pecan> pecan/tests/test_rest.py::TestRestController::test_basic_rest
pecan> /nix/store/p34x70jnhvmrpdaq7dh0gkv1sbs8yf7q-python3.11-webtest-3.0.0/lib/python3.11/site-packages/webtest/lint.py:366: WSGIWarning: Unknown REQUEST_METHOD: 'RESET'
pecan> warnings.warn(
pecan>
pecan> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
pecan> =========================== short test summary info ============================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment