Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jul 2016 15:42:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 211174] www/py-flask-restplus: make test does nothing
Message-ID:  <bug-211174-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211174

            Bug ID: 211174
           Summary: www/py-flask-restplus: make test does nothing
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: jbeich@FreeBSD.org
                CC: andrej@ebert.su, pawel@FreeBSD.org
            Blocks: 210979
                CC: andrej@ebert.su
             Flags: maintainer-feedback?(andrej@ebert.su)

Created attachment 172608
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D172608&action=
=3Dedit
partial fix

test target in setup.py seems to be a stub. In order to run tests one has to
use devel/py-test.

  $ make test
  [...]
  ----------------------------------------------------------------------
  Ran 0 tests in 0.000s

  OK

After applying the patch

  $ make test
  [...]
  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _=
 _ _
_

      def _find_app():
          top =3D _app_ctx_stack.top
          if top is None:
  >           raise RuntimeError(_app_ctx_err_msg)
  E           RuntimeError: Working outside of application context.
  E
  E           This typically means that you attempted to use functionality =
that
needed
  E           to interface with the current application object in a way.  To
solve
  E           this set up an application context with app.app_context().  S=
ee
the
  E           documentation for more information.

  /usr/local/lib/python2.7/site-packages/flask/globals.py:51: RuntimeError
  =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 34 failed, 502 passed, 20 e=
rror in 2.89 seconds
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
  *** [do-test] Error code 1


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210979
[Bug 210979] [new port] www/py-flask-restplus Fully featured framework for =
API
development with Flask
--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-211174-13>