# Path: shipwright/_lib/cli.py
# def argparser():
#     def a_arg(parser, *args, **kwargs):
# def parse_registry_logins(registry_logins):
# def _flatten(items):
# def old_style_arg_dict(namespace):
# def main():
# def process_arguments(path, arguments, client_cfg, environ):
#     def default(self, obj):
# def run(path, arguments, client_cfg, environ, new_style_args=None):
# def exit(msg):
# def memo(f, arg, memos={}):
# def pretty_event(evt, show_progress):
# def highlight(name):
#     def highlight_(msg):
# def switch(rec, show_progress):
# class SetJSONEncoder(json.JSONEncoder):


from shipwright._lib import cli
from __future__ import absolute_import



def switch(event):
    return cli.switch(event, True)


aux = {
    u'aux': {
        u'Digest': u'sha256:redacted',
        u'Size': 1337,
        u'Tag': u'redacted',
    },
    'event': 'push',
    'image': u'redacted/redacted',
    u'progressDetail': {},
}

unhandled = {
    'event': 'unhandled',
}


def test_aux_record():

# Path: shipwright/_lib/cli.py
# def argparser():
#     def a_arg(parser, *args, **kwargs):
# def parse_registry_logins(registry_logins):
# def _flatten(items):
# def old_style_arg_dict(namespace):
# def main():
# def process_arguments(path, arguments, client_cfg, environ):
#     def default(self, obj):
# def run(path, arguments, client_cfg, environ, new_style_args=None):
# def exit(msg):
# def memo(f, arg, memos={}):
# def pretty_event(evt, show_progress):
# def highlight(name):
#     def highlight_(msg):
# def switch(rec, show_progress):
# class SetJSONEncoder(json.JSONEncoder):


# Path: tests/test_switch.py
from shipwright._lib import cli

from __future__ import absolute_import



def switch(event):
    return cli.switch(event, True)


aux = {
    u'aux': {
        u'Digest': u'sha256:redacted',
        u'Size': 1337,
        u'Tag': u'redacted',
    },
    'event': 'push',
    'image': u'redacted/redacted',
    u'progressDetail': {},
}

unhandled = {
    'event': 'unhandled',
}


def test_aux_record():

    assert switch(aux) is None