Пример #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)