Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Str orelse Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign NameStore Str FunctionDef arguments args NameParam defaults vararg body Print Str BinOpMod NameLoad NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpMod Str SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr CompareEq NameLoad Num FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad Str BinOpAdd Str NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Return Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num attr handlers ExceptHandler type NameLoad body Return Str decorator_list Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr Dict For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpMod Str NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call AttributeLoad Call NameLoad NameLoad attr orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Str decorator_list decorator_list FunctionDef arguments args defaults body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body If Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str body Return Str Return Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore SubscriptLoad NameLoad Index Str body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Assign NameStore NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Break Expr Call NameLoad Str NameLoad Return NameLoad decorator_list Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod NameLoad Dict Str Str Str Call AttributeLoad Str attr NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body For NameStore Call NameLoad body If BoolOpOr SubscriptLoad NameLoad Index Str UnaryOpNot NameLoad body Expr Yield SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Expr Call NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad Str NameLoad Assign NameStore Call NameLoad BinOpAdd NameLoad Str Str Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Str keyword NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Expr Call NameLoad Expr Call NameLoad Str Assign NameStore Call NameLoad Expr Call NameLoad Str Expr Call NameLoad Str NameLoad For NameStore NameLoad body Expr Call NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call NameLoad Str orelse Expr Call NameLoad Str Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call NameLoad NameLoad keyword NameLoad attr keyword NameLoad keyword NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Str attr BinOpAdd Call AttributeLoad NameLoad attr Str Str Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad Assign NameStore ListLoad AttributeLoad NameLoad attr orelse Assign NameStore UnaryOpNot AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Import alias Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call AttributeLoad NameLoad attr Str Print Str NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
    Flask Extension Tests
    ~~~~~~~~~~~~~~~~~~~~~

    Tests the Flask extensions.

    :copyright: (c) 2015 by Ali Afshar.
    :license: BSD, see LICENSE for more details.
 N/A os N/A sys N/A shutil N/A urllib2 N/A tempfile N/A subprocess N/A argparse flask json setuptools.package_index PackageIndex setuptools.archive_util unpack_archive N/A flask_svc_url http://flask.pocoo.org/extensions/ N/A N/A N/A sys platform darwin N/A N/A _tempdir /private/tmp N/A N/A _tempdir N/A N/A tempfile gettempdir N/A tdir N/A _tempdir /flaskext-test N/A flaskdir N/A N/A N/A os path abspath N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ .. N/A N/A N/A os environ N/A PYTHONDONTWRITEBYTECODE N/A RESULT_TEMPATE <!doctype html>
<title>Flask-Extension Test Results</title>
<style type=text/css>
  body         { font-family: 'Georgia', serif; font-size: 17px; color: #000; }
  a            { color: #004B6B; }
  a:hover      { color: #6D4100; }
  h1, h2, h3   { font-family: 'Garamond', 'Georgia', serif; font-weight: normal; }
  h1           { font-size: 30px; margin: 15px 0 5px 0; }
  h2           { font-size: 24px; margin: 15px 0 5px 0; }
  h3           { font-size: 19px; margin: 15px 0 5px 0; }
  textarea, code,
  pre          { font-family: 'Consolas', 'Menlo', 'Deja Vu Sans Mono',
                 'Bitstream Vera Sans Mono', monospace!important; font-size: 15px;
                 background: #eee; }
  pre          { padding: 7px 15px; line-height: 1.3; }
  p            { line-height: 1.4; }
  table        { border: 1px solid black; border-collapse: collapse;
                 margin: 15px 0; }
  td, th       { border: 1px solid black; padding: 4px 10px;
                 text-align: left; }
  th           { background: #eee; font-weight: normal; }
  tr.success   { background: #D3F5CC; }
  tr.failed    { background: #F5D2CB; }
</style>
<h1>Flask-Extension Test Results</h1>
<p>
  This page contains the detailed test results for the test run of
  all {{ 'approved' if approved }} Flask extensions.
<h2>Summary</h2>
<table class=results>
  <thead>
    <tr>
      <th>Extension
      <th>Version
      <th>Author
      <th>License
      <th>Outcome
      {%- for iptr, _ in results[0].logs|dictsort %}
        <th>{{ iptr }}
      {%- endfor %}
    </tr>
  </thead>
  <tbody>
  {%- for result in results %}
    {% set outcome = 'success' if result.success else 'failed' %}
    <tr class={{ outcome }}>
      <th>{{ result.name }}
      <td>{{ result.version }}
      <td>{{ result.author }}
      <td>{{ result.license }}
      <td>{{ outcome }}
      {%- for iptr, _ in result.logs|dictsort %}
        <td><a href="#{{ result.name }}-{{ iptr }}">see log</a>
      {%- endfor %}
    </tr>
  {%- endfor %}
  </tbody>
</table>
<h2>Test Logs</h2>
<p>Detailed test logs for all tests on all platforms:
{%- for result in results %}
  {%- for iptr, log in result.logs|dictsort %}
    <h3 id="{{ result.name }}-{{ iptr }}">
      {{ result.name }} - {{ result.version }} [{{ iptr }}]</h3>
    <pre>{{ log }}</pre>
  {%- endfor %}
{%- endfor %}
 log N/A N/A msg N/A args N/A N/A [EXTTEST] N/A msg args N/A TestResult N/A object N/A __init__ N/A N/A self name folder statuscode interpreters N/A N/A N/A intrptr N/A N/A N/A os path join folder N/A .tox/%s/bin/python N/A interpreters N/A 0 N/A N/A self statuscode statuscode N/A N/A self folder folder N/A N/A self success N/A statuscode 0 fetch N/A N/A field N/A N/A N/A N/A N/A c N/A N/A subprocess Popen N/A intrptr setup.py N/A -- field cwd folder stdout N/A subprocess PIPE N/A N/A N/A N/A N/A N/A c communicate N/A 0 strip N/A N/A N/A OSError N/A N/A ? N/A N/A N/A self name name N/A N/A self license N/A fetch license N/A N/A self author N/A fetch author N/A N/A self version N/A fetch version N/A N/A self logs N/A N/A interpreter interpreters N/A N/A logfile N/A N/A N/A os path join folder N/A .tox/%s/log/test.log interpreter N/A N/A N/A N/A os path isfile logfile N/A N/A N/A N/A self logs N/A interpreter N/A N/A N/A open logfile read N/A N/A N/A N/A self logs N/A interpreter N/A N/A create_tdir N/A N/A N/A N/A N/A N/A N/A N/A N/A shutil rmtree tdir N/A N/A N/A Exception N/A N/A N/A N/A N/A os mkdir tdir N/A package_flask N/A N/A N/A N/A N/A distfolder N/A tdir /.flask-dist N/A c N/A N/A subprocess Popen N/A python setup.py sdist --formats=gztar --dist distfolder cwd flaskdir N/A N/A N/A c wait N/A N/A N/A N/A os path join distfolder N/A N/A N/A os listdir distfolder N/A 0 N/A get_test_command N/A N/A checkout_dir N/A N/A N/A N/A N/A N/A os path isfile N/A checkout_dir /Makefile N/A N/A make test N/A python setup.py test N/A fetch_extensions_list N/A N/A N/A N/A N/A req N/A N/A urllib2 Request flask_svc_url headers N/A accept application/json N/A d N/A N/A N/A N/A urllib2 urlopen req read N/A data N/A N/A json loads d N/A ext N/A data N/A extensions N/A N/A N/A ext N/A checkout_extension N/A N/A name N/A N/A N/A N/A log Downloading extension %s to temporary folder name N/A root N/A N/A N/A os path join tdir name N/A N/A N/A os mkdir root N/A checkout_path N/A N/A N/A PackageIndex download name root N/A N/A unpack_archive checkout_path root N/A path None N/A fn N/A N/A os listdir root N/A N/A path N/A N/A N/A os path join root fn N/A N/A N/A N/A os path isdir path N/A N/A N/A N/A log Downloaded to %s path N/A path N/A N/A tox_template [tox]
envlist=%(env)s

[testenv]
deps=
  %(deps)s
  distribute
  py
commands=bash flaskext-runtest.sh {envlogdir}/test.log
downloadcache=%(cache)s
 create_tox_ini N/A N/A checkout_path interpreters flask_dep N/A N/A N/A tox_path N/A N/A N/A os path join checkout_path tox-flask-test.ini N/A N/A N/A N/A N/A os path exists tox_path N/A N/A N/A open tox_path w f N/A N/A N/A N/A f write N/A tox_template N/A env cache deps N/A N/A , join interpreters tdir flask_dep N/A tox_path N/A iter_extensions N/A N/A only_approved N/A True N/A N/A ext N/A fetch_extensions_list N/A N/A N/A N/A ext N/A approved N/A only_approved N/A N/A N/A N/A ext N/A name N/A test_extension N/A N/A name interpreters flask_dep N/A N/A N/A checkout_path N/A checkout_extension name N/A N/A log Running tests with tox in %s checkout_path N/A test_command N/A get_test_command checkout_path N/A N/A log Test command: %s test_command N/A f N/A open N/A checkout_path /flaskext-runtest.sh w N/A N/A N/A f write N/A test_command  &> "$1" < /dev/null
 N/A N/A N/A f close N/A N/A create_tox_ini checkout_path interpreters flask_dep N/A rv N/A N/A subprocess call N/A tox -c tox-flask-test.ini cwd checkout_path N/A N/A TestResult name checkout_path rv interpreters N/A run_tests N/A N/A extensions interpreters N/A N/A N/A results N/A N/A N/A create_tdir N/A N/A log Packaging Flask N/A flask_dep N/A package_flask N/A N/A log Running extension tests N/A N/A log Temporary Environment: %s tdir N/A name extensions N/A N/A N/A log Testing %s name N/A result N/A test_extension name interpreters flask_dep N/A N/A result success N/A N/A N/A log Extension test succeeded N/A N/A N/A log Extension test failed N/A N/A results N/A name result N/A results N/A render_results N/A N/A results approved N/A N/A jinja2 Template N/A items N/A N/A results values N/A N/A N/A items sort key N/A N/A N/A x N/A N/A N/A N/A x name lower N/A rv N/A N/A N/A Template RESULT_TEMPATE autoescape True render results items approved approved N/A N/A fd filename N/A N/A tempfile mkstemp suffix .html N/A N/A N/A N/A N/A os fdopen fd w write N/A N/A N/A rv encode utf-8 N/A filename N/A main N/A N/A N/A N/A N/A parser N/A N/A argparse ArgumentParser description Runs Flask extension tests N/A N/A N/A parser add_argument --all dest all action store_true help run against all extensions, not just approved N/A N/A N/A parser add_argument --browse dest browse action store_true help show browser with the result summary N/A N/A N/A parser add_argument --env dest env default py25,py26,py27 help the tox environments to run against N/A N/A N/A parser add_argument --extension= dest extension default None help tests a single extension N/A args N/A N/A parser parse_args N/A N/A N/A args extension None N/A N/A only_approved False N/A extensions N/A N/A args extension N/A N/A only_approved N/A N/A args all N/A extensions N/A iter_extensions only_approved N/A results N/A run_tests extensions N/A N/A N/A x strip N/A x N/A N/A N/A args env split , N/A filename N/A render_results results only_approved N/A N/A args browse N/A N/A webbrowser N/A N/A N/A webbrowser open N/A file:/// N/A N/A filename lstrip / N/A Results written to filename N/A N/A N/A __name__ __main__ N/A N/A N/A main