예제 #1
0
def test_escaped_copy_analysis():
    analysis = analyze(input)

    assert match_object_snapshot(
        analysis, 'tests/analyzer/snapshots/escaped_copy_analysis.snap.yaml')
예제 #2
0
def test_tokenizer():
    analysis = analyze(input)

    assert match_object_snapshot(
        analysis, 'tests/analyzer/snapshots/analyzer.snap.yaml')
예제 #3
0
def test_empty_line_analysis():
    analysis = analyze(input)

    assert match_object_snapshot(
        analysis, 'tests/analyzer/snapshots/empty_line_analysis.snap.yaml')
예제 #4
0
def test_spaced_line_continuation_analysis():
    analysis = analyze(input)

    assert match_object_snapshot(
        analysis,
        'tests/analyzer/snapshots/spaced_line_continuation_analysis.snap.yaml')
예제 #5
0
def test_continuations():
    analysis = analyze(input)

    assert match_object_snapshot(
        analysis, 'tests/analyzer/snapshots/continuations.snap.yaml')
예제 #6
0
def test_field_analysis():
    analysis = analyze(input)

    assert match_object_snapshot(
        analysis, 'tests/analyzer/snapshots/section_analysis.snap.yaml')
예제 #7
0
def test_list_item_analysis():
    analysis = analyze(input)

    assert match_object_snapshot(
        analysis, 'tests/analyzer/snapshots/list_item_analysis.snap.yaml')
예제 #8
0
def test_comment_analysis():
    analysis = analyze(input)

    assert match_object_snapshot(
        analysis, 'tests/analyzer/snapshots/comment_analysis.snap.yaml')