Package Details: python2-klein 17.10.0-3

Git Clone URL: https://aur.archlinux.org/python2-klein.git (read-only, click to copy)
Package Base: python2-klein
Description: A web micro-framework built on werkzeug and twisted.web
Upstream URL: https://github.com/twisted/klein
Licenses: MIT
Submitter: yan12125_2
Maintainer: None
Last Packager: yan12125_2
Votes: 1
Popularity: 0.003097
First Submitted: 2019-02-18 09:28
Last Updated: 2019-02-18 09:28

Latest Comments

yochananmarqos commented on 2019-11-07 06:24

Alas, there doesn't appear to be anything that can be fixed.

yan12125_2 commented on 2019-11-07 03:58

This package is orphaned. Feel free to adopt and fix it!

yochananmarqos commented on 2019-11-06 18:15

It fails during check. Maybe update to 19.6.0?

==> Starting check()...
================================================================================== test session starts ==================================================================================
platform linux2 -- Python 2.7.17, pytest-4.6.4, py-1.8.0, pluggy-0.13.0 -- /usr/bin/python2
cachedir: .pytest_cache
rootdir: /home/yochanan/.cache/yay/python2-klein/src/klein-release-17.10.0
collected 101 items                                                                                                                                                                     

src/klein/test/test_app.py::KleinEqualityTestCase::test_anotherTypeEq PASSED                                                                                                      [  0%]
src/klein/test/test_app.py::KleinEqualityTestCase::test_anotherTypeNe PASSED                                                                                                      [  1%]
src/klein/test/test_app.py::KleinEqualityTestCase::test_delegateNe PASSED                                                                                                         [  2%]
src/klein/test/test_app.py::KleinEqualityTestCase::test_delegatedEq PASSED                                                                                                        [  3%]
src/klein/test/test_app.py::KleinEqualityTestCase::test_differentEq PASSED                                                                                                        [  4%]
src/klein/test/test_app.py::KleinEqualityTestCase::test_differentNe PASSED                                                                                                        [  5%]
src/klein/test/test_app.py::KleinEqualityTestCase::test_identicalEq PASSED                                                                                                        [  6%]
src/klein/test/test_app.py::KleinEqualityTestCase::test_identicalNe PASSED                                                                                                        [  7%]
src/klein/test/test_app.py::KleinEqualityTestCase::test_sameEq PASSED                                                                                                             [  8%]
src/klein/test/test_app.py::KleinEqualityTestCase::test_sameNe PASSED                                                                                                             [  9%]
src/klein/test/test_app.py::KleinTestCase::test_bindable PASSED                                                                                                                   [ 10%]
src/klein/test/test_app.py::KleinTestCase::test_branchDoesntRequireTrailingSlash PASSED                                                                                           [ 11%]
src/klein/test/test_app.py::KleinTestCase::test_branchRoute PASSED                                                                                                                [ 12%]
src/klein/test/test_app.py::KleinTestCase::test_classicalRoute PASSED                                                                                                             [ 13%]
src/klein/test/test_app.py::KleinTestCase::test_classicalRouteWithBranch PASSED                                                                                                   [ 14%]
src/klein/test/test_app.py::KleinTestCase::test_classicalRouteWithTwoInstances PASSED                                                                                             [ 15%]
src/klein/test/test_app.py::KleinTestCase::test_modified PASSED                                                                                                                   [ 16%]
src/klein/test/test_app.py::KleinTestCase::test_resource PASSED                                                                                                                   [ 17%]
src/klein/test/test_app.py::KleinTestCase::test_route PASSED                                                                                                                      [ 18%]
src/klein/test/test_app.py::KleinTestCase::test_run PASSED                                                                                                                        [ 19%]
src/klein/test/test_app.py::KleinTestCase::test_runSSL PASSED                                                                                                                     [ 20%]
src/klein/test/test_app.py::KleinTestCase::test_runTCP6 PASSED                                                                                                                    [ 21%]
src/klein/test/test_app.py::KleinTestCase::test_runWithLogFile PASSED                                                                                                             [ 22%]
src/klein/test/test_app.py::KleinTestCase::test_stackedRoute PASSED                                                                                                               [ 23%]
src/klein/test/test_app.py::KleinTestCase::test_submountedRoute PASSED                                                                                                            [ 24%]
src/klein/test/test_plating.py::PlatingTests::test_json_serialize_unknown_type PASSED                                                                                             [ 25%]
src/klein/test/test_plating.py::PlatingTests::test_missing_renderer PASSED                                                                                                        [ 26%]
src/klein/test/test_plating.py::PlatingTests::test_presentation_only_json PASSED                                                                                                  [ 27%]
src/klein/test/test_plating.py::PlatingTests::test_prime_directive_arguments PASSED                                                                                               [ 28%]
src/klein/test/test_plating.py::PlatingTests::test_prime_directive_return PASSED                                                                                                  [ 29%]
src/klein/test/test_plating.py::PlatingTests::test_render_list PASSED                                                                                                             [ 30%]
src/klein/test/test_plating.py::PlatingTests::test_selfhood PASSED                                                                                                                [ 31%]
src/klein/test/test_plating.py::PlatingTests::test_template_html PASSED                                                                                                           [ 32%]
src/klein/test/test_plating.py::PlatingTests::test_template_json PASSED                                                                                                           [ 33%]
src/klein/test/test_plating.py::PlatingTests::test_template_numbers PASSED                                                                                                        [ 34%]
src/klein/test/test_plating.py::PlatingTests::test_widget_html PASSED                                                                                                             [ 35%]
src/klein/test/test_plating.py::PlatingTests::test_widget_json PASSED                                                                                                             [ 36%]
src/klein/test/test_resource.py::KleinResourceEqualityTests::test_anotherTypeEq PASSED                                                                                            [ 37%]
src/klein/test/test_resource.py::KleinResourceEqualityTests::test_anotherTypeNe PASSED                                                                                            [ 38%]
src/klein/test/test_resource.py::KleinResourceEqualityTests::test_delegateNe PASSED                                                                                               [ 39%]
src/klein/test/test_resource.py::KleinResourceEqualityTests::test_delegatedEq PASSED                                                                                              [ 40%]
src/klein/test/test_resource.py::KleinResourceEqualityTests::test_differentEq PASSED                                                                                              [ 41%]
src/klein/test/test_resource.py::KleinResourceEqualityTests::test_differentNe PASSED                                                                                              [ 42%]
src/klein/test/test_resource.py::KleinResourceEqualityTests::test_identicalEq PASSED                                                                                              [ 43%]
src/klein/test/test_resource.py::KleinResourceEqualityTests::test_identicalNe PASSED                                                                                              [ 44%]
src/klein/test/test_resource.py::KleinResourceEqualityTests::test_sameEq PASSED                                                                                                   [ 45%]
src/klein/test/test_resource.py::KleinResourceEqualityTests::test_sameNe PASSED                                                                                                   [ 46%]
src/klein/test/test_resource.py::KleinResourceTests::test_URLPath PASSED                                                                                                          [ 47%]
src/klein/test/test_resource.py::KleinResourceTests::test_URLPath_root PASSED                                                                                                     [ 48%]
src/klein/test/test_resource.py::KleinResourceTests::test_URLPath_traversedResource PASSED                                                                                        [ 49%]
src/klein/test/test_resource.py::KleinResourceTests::test_addSlash PASSED                                                                                                         [ 50%]
src/klein/test/test_resource.py::KleinResourceTests::test_branchRendering PASSED                                                                                                  [ 51%]
src/klein/test/test_resource.py::KleinResourceTests::test_branchWithExplicitChildBranch PASSED                                                                                    [ 52%]
src/klein/test/test_resource.py::KleinResourceTests::test_branchWithExplicitChildrenRouting PASSED                                                                                [ 53%]
src/klein/test/test_resource.py::KleinResourceTests::test_cancelledDeferred PASSED                                                                                                [ 54%]
src/klein/test/test_resource.py::KleinResourceTests::test_cancelledIsEatenOnConnectionLost PASSED                                                                                 [ 55%]
src/klein/test/test_resource.py::KleinResourceTests::test_cancelsOnConnectionLost PASSED                                                                                          [ 56%]
src/klein/test/test_resource.py::KleinResourceTests::test_childResourceRendering PASSED                                                                                           [ 57%]
src/klein/test/test_resource.py::KleinResourceTests::test_childrenResourceRendering PASSED                                                                                        [ 58%]
src/klein/test/test_resource.py::KleinResourceTests::test_correctContentLengthForRequestRedirect FAILED                                                                           [ 59%]
src/klein/test/test_resource.py::KleinResourceTests::test_decodesPath PASSED                                                                                                      [ 60%]
src/klein/test/test_resource.py::KleinResourceTests::test_deferredElementRendering PASSED                                                                                         [ 61%]
src/klein/test/test_resource.py::KleinResourceTests::test_deferredRendering PASSED                                                                                                [ 62%]
src/klein/test/test_resource.py::KleinResourceTests::test_elementRendering PASSED                                                                                                 [ 63%]
src/klein/test/test_resource.py::KleinResourceTests::test_ensure_utf8_bytes PASSED                                                                                                [ 64%]
src/klein/test/test_resource.py::KleinResourceTests::test_errorHandlerNeedsRendering PASSED                                                                                       [ 65%]
src/klein/test/test_resource.py::KleinResourceTests::test_errorHandlerReturnsResource PASSED                                                                                      [ 66%]
src/klein/test/test_resource.py::KleinResourceTests::test_explicitStaticBranch PASSED                                                                                             [ 67%]
src/klein/test/test_resource.py::KleinResourceTests::test_external_url_for PASSED                                                                                                 [ 68%]
src/klein/test/test_resource.py::KleinResourceTests::test_failedDecodePathInfo PASSED                                                                                             [ 69%]
src/klein/test/test_resource.py::KleinResourceTests::test_genericErrorHandler PASSED                                                                                              [ 70%]
src/klein/test/test_resource.py::KleinResourceTests::test_handlerRaises PASSED                                                                                                    [ 71%]
src/klein/test/test_resource.py::KleinResourceTests::test_leafResourceRendering PASSED                                                                                            [ 72%]
src/klein/test/test_resource.py::KleinResourceTests::test_methodNotAllowed PASSED                                                                                                 [ 73%]
src/klein/test/test_resource.py::KleinResourceTests::test_methodNotAllowedWithRootCollection PASSED                                                                               [ 74%]
src/klein/test/test_resource.py::KleinResourceTests::test_noImplicitBranch PASSED                                                                                                 [ 75%]
src/klein/test/test_resource.py::KleinResourceTests::test_notFound PASSED                                                                                                         [ 76%]
src/klein/test/test_resource.py::KleinResourceTests::test_notFoundException PASSED                                                                                                [ 77%]
src/klein/test/test_resource.py::KleinResourceTests::test_producerResourceRendering PASSED                                                                                        [ 78%]
src/klein/test/test_resource.py::KleinResourceTests::test_renderNone PASSED                                                                                                       [ 79%]
src/klein/test/test_resource.py::KleinResourceTests::test_renderUnicode PASSED                                                                                                    [ 80%]
src/klein/test/test_resource.py::KleinResourceTests::test_requestFinishAfterConnectionLost PASSED                                                                                 [ 81%]
src/klein/test/test_resource.py::KleinResourceTests::test_requestWriteAfterFinish PASSED                                                                                          [ 82%]
src/klein/test/test_resource.py::KleinResourceTests::test_routeHandlesRequestFinished PASSED                                                                                      [ 83%]
src/klein/test/test_resource.py::KleinResourceTests::test_simplePost PASSED                                                                                                       [ 84%]
src/klein/test/test_resource.py::KleinResourceTests::test_simpleRouting PASSED                                                                                                    [ 85%]
src/klein/test/test_resource.py::KleinResourceTests::test_staticDirlist PASSED                                                                                                    [ 86%]
src/klein/test/test_resource.py::KleinResourceTests::test_staticRoot PASSED                                                                                                       [ 87%]
src/klein/test/test_resource.py::KleinResourceTests::test_strictSlashes PASSED                                                                                                    [ 88%]
src/klein/test/test_resource.py::KleinResourceTests::test_subroutedBranch PASSED                                                                                                  [ 89%]
src/klein/test/test_resource.py::KleinResourceTests::test_typeSpecificErrorHandlers PASSED                                                                                        [ 90%]
src/klein/test/test_resource.py::KleinResourceTests::test_urlDecodeErrorReprPy2 PASSED                                                                                            [ 91%]
src/klein/test/test_resource.py::KleinResourceTests::test_urlDecodeErrorReprPy3 SKIPPED                                                                                           [ 92%]
src/klein/test/test_resource.py::KleinResourceTests::test_url_for PASSED                                                                                                          [ 93%]
src/klein/test/test_resource.py::ExtractURLpartsTests::test_afUnixSocket PASSED                                                                                                   [ 94%]
src/klein/test/test_resource.py::ExtractURLpartsTests::test_failAll PASSED                                                                                                        [ 95%]
src/klein/test/test_resource.py::ExtractURLpartsTests::test_failPathInfo PASSED                                                                                                   [ 96%]
src/klein/test/test_resource.py::ExtractURLpartsTests::test_failScriptName PASSED                                                                                                 [ 97%]
src/klein/test/test_resource.py::ExtractURLpartsTests::test_failServerName PASSED                                                                                                 [ 98%]
src/klein/test/test_resource.py::ExtractURLpartsTests::test_types PASSED                                                                                                          [ 99%]
src/klein/test/test_resource.py::GlobalAppTests::test_global_app PASSED                                                                                                           [100%]

======================================================================================= FAILURES ========================================================================================
____________________________________________________________ KleinResourceTests.test_correctContentLengthForRequestRedirect _____________________________________________________________

self = <klein.test.test_resource.KleinResourceTests testMethod=test_correctContentLengthForRequestRedirect>

    def test_correctContentLengthForRequestRedirect(self):
        app = self.app

        @app.route('/alias', alias=True)
        @app.route('/real')
        def real(req):
            return b'42'

        request = requestMock(b'/real')
        d = _render(self.kr, request)
        self.assertFired(d)
        self.assertEqual(request.getWrittenData(), b'42')

        request = requestMock(b'/alias')
        d = _render(self.kr, request)
        self.assertFired(d)
>       request.setResponseCode.assert_called_with(301)

src/klein/test/test_resource.py:1157: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python2.7/site-packages/mock/mock.py:944: in assert_called_with
    six.raise_from(AssertionError(_error_message(cause)), cause)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

value = AssertionError('expected call not found.\nExpected: mock(301)\nActual: mock(308)',), from_value = None

    def raise_from(value, from_value):
>       raise value
E       AssertionError: expected call not found.
E       Expected: mock(301)
E       Actual: mock(308)

/usr/lib/python2.7/site-packages/six.py:737: AssertionError
=================================================================================== warnings summary ====================================================================================
/usr/lib/python2.7/site-packages/twisted/internet/address.py:101
  /usr/lib/python2.7/site-packages/twisted/internet/address.py:101: DeprecationWarning: The usage of `cmp` is deprecated and will be removed on or after 2021-06-01.  Please use `eq` and `order` instead.
    @attr.s(hash=False, repr=False, cmp=False)

:0
  :0: UserWarning: You do not have a working installation of the service_identity module: 'No module named service_identity'.  Please install it from <https://pypi.python.org/pypi/service_identity> and make sure all of its dependencies are satisfied.  Without the service_identity module, Twisted can perform only rudimentary TLS client hostname verification.  Many valid certificate/hostname mappings may be rejected.

/usr/lib/python2.7/site-packages/twisted/web/test/test_web.py:27
  /usr/lib/python2.7/site-packages/twisted/web/test/test_web.py:27: DeprecationWarning: twisted.test.proto_helpers.EventLoggingObserver was deprecated in Twisted 19.7.0: Please use twisted.internet.testing.EventLoggingObserver instead.
    from twisted.test.proto_helpers import EventLoggingObserver

-- Docs: https://docs.pytest.org/en/latest/warnings.html
============================================================== 1 failed, 99 passed, 1 skipped, 3 warnings in 1.02 seconds ===============================================================
==> ERROR: A failure occurred in check().
    Aborting...