Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
Turn a single parsed result into data about why there are no backends.

Used for the why-no-backend script.

        def gather_no_backend_data(result):
    """Turn a single parsed result into data about why there are no backends.

    Used for the why-no-backend script.
    """
    details = result['details']
    reasons = parse_backend_reasons(details.get('traceback', ''))
    if not reasons:
        return
    core, supplements = split_supplement_data(reasons)
    files = gather_files_from_backend_reasons(supplements)
    myapps = details['myapps']
    return {
        'url': myapps['package_url'],
        'id': myapps['myapps_id'],
        'reasons': core,
        'files': files,
        }
        


src/t/x/txpkgme-0.3/txpkgme/tests/test_nobackend.py   txpkgme(Download)
from testtools import TestCase
 
from txpkgme.nobackend import (
    gather_files_from_backend_reasons,
    gather_no_backend_data,
                },
            }
        report = gather_no_backend_data(result)
        reasons, supplements = split_supplement_data(
            parse_backend_reasons(data))