def test_get_diff_changes_multiple():
    expected = (
        ('README.rst', 3, 3),
        ('README.rst', 29, 33),
        ('setup.py', 0, 0),
        # new files are ignored
    )
    assert tuple(get_diff_changes(diff2)) == expected
Exemplo n.º 2
0
def test_get_diff_changes_multiple():
    expected = (
        ('README.rst', 3, 3),
        ('README.rst', 29, 33),
        ('setup.py', 0, 0),
        # new files are ignored
    )
    assert tuple(get_diff_changes(diff2)) == expected
def test_manformed_diff():
    assert tuple(get_diff_changes("diff foo\nbar")) == ()
def test_get_diff_changes_simple():
    expected = (
        ('README.rst', 3, 3),
    )
    assert tuple(get_diff_changes(diff1)) == expected
Exemplo n.º 5
0
def test_manformed_diff():
    assert tuple(get_diff_changes("diff foo\nbar")) == ()
Exemplo n.º 6
0
def test_get_diff_changes_simple():
    expected = (('README.rst', 3, 3), )
    assert tuple(get_diff_changes(diff1)) == expected