Skip to content

Instantly share code, notes, and snippets.

@kinnou02
Created October 10, 2016 10:55
Show Gist options
  • Save kinnou02/5a4fbd04b2e0088710e83eab46de16cc to your computer and use it in GitHub Desktop.
Save kinnou02/5a4fbd04b2e0088710e83eab46de16cc to your computer and use it in GitHub Desktop.
py.test --doctest-modules (env: tartare)
============================================================================================================ test session starts =============================================================================================================
platform linux -- Python 3.5.2, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /home/kinou/workspace/tartare, inifile:
collected 52 items / 4 errors
tests/helper_test.py .....
tests/integration/calendar_handle_test.py ....
tests/integration/update_data_test.py .....
tests/integration/mongo/contributors_api_test.py .............
tests/integration/mongo/coverage_api_test.py .............
tests/integration/mongo/models_test.py .
tests/integration/mongo/rest_api_test.py ...........
=================================================================================================================== ERRORS ===================================================================================================================
____________________________________________________________________________________________ ERROR collecting tartare/interfaces/contributors.py _____________________________________________________________________________________________
/usr/lib/python3.5/doctest.py:924: in find
self._find(tests, obj, name, module, source_lines, globs, {})
/usr/lib/python3.5/doctest.py:983: in _find
if ((inspect.isroutine(inspect.unwrap(val))
/usr/lib/python3.5/inspect.py:471: in unwrap
while _is_wrapper(func):
/usr/lib/python3.5/inspect.py:465: in _is_wrapper
return hasattr(f, '__wrapped__')
../../.virtualenvs/tartare/lib/python3.5/site-packages/werkzeug/local.py:343: in __getattr__
return getattr(self._get_current_object(), name)
../../.virtualenvs/tartare/lib/python3.5/site-packages/werkzeug/local.py:302: in _get_current_object
return self.__local()
../../.virtualenvs/tartare/lib/python3.5/site-packages/flask/globals.py:37: in _lookup_req_object
raise RuntimeError(_request_ctx_err_msg)
E RuntimeError: Working outside of request context.
E
E This typically means that you attempted to use functionality that needed
E an active HTTP request. Consult the documentation on testing for
E information about how to avoid this problem.
______________________________________________________________________________________________ ERROR collecting tartare/interfaces/coverages.py ______________________________________________________________________________________________
/usr/lib/python3.5/doctest.py:924: in find
self._find(tests, obj, name, module, source_lines, globs, {})
/usr/lib/python3.5/doctest.py:983: in _find
if ((inspect.isroutine(inspect.unwrap(val))
/usr/lib/python3.5/inspect.py:471: in unwrap
while _is_wrapper(func):
/usr/lib/python3.5/inspect.py:465: in _is_wrapper
return hasattr(f, '__wrapped__')
../../.virtualenvs/tartare/lib/python3.5/site-packages/werkzeug/local.py:343: in __getattr__
return getattr(self._get_current_object(), name)
../../.virtualenvs/tartare/lib/python3.5/site-packages/werkzeug/local.py:302: in _get_current_object
return self.__local()
../../.virtualenvs/tartare/lib/python3.5/site-packages/flask/globals.py:37: in _lookup_req_object
raise RuntimeError(_request_ctx_err_msg)
E RuntimeError: Working outside of request context.
E
E This typically means that you attempted to use functionality that needed
E an active HTTP request. Consult the documentation on testing for
E information about how to avoid this problem.
______________________________________________________________________________________________ ERROR collecting tartare/interfaces/geo_data.py _______________________________________________________________________________________________
/usr/lib/python3.5/doctest.py:924: in find
self._find(tests, obj, name, module, source_lines, globs, {})
/usr/lib/python3.5/doctest.py:983: in _find
if ((inspect.isroutine(inspect.unwrap(val))
/usr/lib/python3.5/inspect.py:471: in unwrap
while _is_wrapper(func):
/usr/lib/python3.5/inspect.py:465: in _is_wrapper
return hasattr(f, '__wrapped__')
../../.virtualenvs/tartare/lib/python3.5/site-packages/werkzeug/local.py:343: in __getattr__
return getattr(self._get_current_object(), name)
../../.virtualenvs/tartare/lib/python3.5/site-packages/werkzeug/local.py:302: in _get_current_object
return self.__local()
../../.virtualenvs/tartare/lib/python3.5/site-packages/flask/globals.py:37: in _lookup_req_object
raise RuntimeError(_request_ctx_err_msg)
E RuntimeError: Working outside of request context.
E
E This typically means that you attempted to use functionality that needed
E an active HTTP request. Consult the documentation on testing for
E information about how to avoid this problem.
____________________________________________________________________________________________ ERROR collecting tartare/interfaces/grid_calendar.py ____________________________________________________________________________________________
/usr/lib/python3.5/doctest.py:924: in find
self._find(tests, obj, name, module, source_lines, globs, {})
/usr/lib/python3.5/doctest.py:983: in _find
if ((inspect.isroutine(inspect.unwrap(val))
/usr/lib/python3.5/inspect.py:471: in unwrap
while _is_wrapper(func):
/usr/lib/python3.5/inspect.py:465: in _is_wrapper
return hasattr(f, '__wrapped__')
../../.virtualenvs/tartare/lib/python3.5/site-packages/werkzeug/local.py:343: in __getattr__
return getattr(self._get_current_object(), name)
../../.virtualenvs/tartare/lib/python3.5/site-packages/werkzeug/local.py:302: in _get_current_object
return self.__local()
../../.virtualenvs/tartare/lib/python3.5/site-packages/flask/globals.py:37: in _lookup_req_object
raise RuntimeError(_request_ctx_err_msg)
E RuntimeError: Working outside of request context.
E
E This typically means that you attempted to use functionality that needed
E an active HTTP request. Consult the documentation on testing for
E information about how to avoid this problem.
===================================================================================================== 52 passed, 4 error in 3.61 seconds =====================================================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment