예제 #1
0
def test_command_line_runs(write_file):
    args = ["a", "b", "-f", "md"]
    cli.run_with_args(args)
    assert write_file.call_count == 2
예제 #2
0
def test_same_line_formatting():
    args = ["tests/fixtures/same-line-formatting.boxnote", "-f", "md"]
    cli.run_with_args(args)
예제 #3
0
def test_table_aligned():
    args = ["tests/fixtures/table-aligned.boxnote", "-f", "md"]
    cli.run_with_args(args)
예제 #4
0
def test_table_multiline():
    args = ["tests/fixtures/table-multiline.boxnote", "-f", "md"]
    cli.run_with_args(args)
예제 #5
0
def test_table_simple():
    args = ["tests/fixtures/table-simple.boxnote", "-f", "md"]
    cli.run_with_args(args)
예제 #6
0
def test_everything():
    for txtfmt in "md", "txt", "html":
        args = ["tests/fixtures", "-f", txtfmt]
        cli.run_with_args(args)