Merge lp://qastaging/~daniel-nichter/boots/vertical-output into lp://qastaging/boots

Proposed by Daniel Nichter
Status: Needs review
Proposed branch: lp://qastaging/~daniel-nichter/boots/vertical-output
Merge into: lp://qastaging/boots
Diff against target: 291 lines (+152/-60)
3 files modified
boots/app/client_config.py (+6/-0)
boots/lib/ui/plain.py (+70/-56)
tests/boots/lib/ui/ui_tests.py (+76/-4)
To merge this branch: bzr merge lp://qastaging/~daniel-nichter/boots/vertical-output
Reviewer Review Type Date Requested Status
Jay Pipes Approve
Review via email: mp+25407@code.qastaging.launchpad.net

Description of the change

Adds --vertical-output option to enable mysql cli \G-like output:

> show master status;
=================================== Row 1 ====================================
            File: mysql-bin.000001
        Position: 364
    Binlog_Do_DB:
Binlog_Ignore_DB:

1 row in set (0.00s server | +0.00s working)

To post a comment you must log in.
Revision history for this message
Jay Pipes (jaypipes) wrote :

Awesomeness! Daniel, is it possible to include a simple test case for this new functionality?

Unit testing is pretty light right now. However, from a glance, it looks like adding a test method to the TestPlain class in /tests/lib/ui/ui_tests.py is the right way to go...

Cheers!

jay

review: Approve
Revision history for this message
Daniel Nichter (daniel-nichter) wrote :

> Awesomeness! Daniel, is it possible to include a simple test case for this
> new functionality?

Yes, I will write tests...

165. By Daniel Nichter

Move padded(), show_NULL() and _gen_output() out of present() for testing; prepend _ to first two. Add ui tests.

Revision history for this message
Daniel Nichter (daniel-nichter) wrote :

Added some basic ui tests. My understanding of boots internals is not complete so if the _gen_output() tests in particular seem odd please correct/enlighten me. Thanks.

Unmerged revisions

165. By Daniel Nichter

Move padded(), show_NULL() and _gen_output() out of present() for testing; prepend _ to first two. Add ui tests.

164. By Daniel Nichter

Add --vertical-output.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to status/vote changes: