示例#1
0
def test_read_lines():
    lines = utils.read_lines("data/test_stories/stories.md",
                             max_line_limit=2,
                             line_pattern=r"\*.*")

    lines = list(lines)

    assert len(lines) == 2
示例#2
0
def test_read_lines():
    lines = utils.read_lines("data/test_stories/stories.md",
                             max_line_limit=2,
                             line_pattern="\*.*")

    lines = list(lines)

    assert len(lines) == 2