Example #1
0
def test_is_tree_clean_with_staged_with_unstaged(monkeypatch):
    monkeypatch.setattr(porcelain, 'status', status_mockreturn)
    assert not is_tree_clean({
        'staged': {
            'file': 'path'
        },
        'unstaged': ['moar files']
    })
Example #2
0
def test_is_tree_clean_with_staged_with_unstaged(monkeypatch):
    monkeypatch.setattr(porcelain, "status", status_mockreturn)
    assert not is_tree_clean({
        "staged": {
            "file": "path"
        },
        "unstaged": ["moar files"]
    })
Example #3
0
def test_is_tree_clean_with_staged_with_unstaged(monkeypatch):
    monkeypatch.setattr(porcelain, 'status', status_mockreturn)
    assert not is_tree_clean({
        'staged': {'file': 'path'},
        'unstaged': ['moar files']
    })
Example #4
0
def test_is_tree_clean_no_staged_no_unstaged(monkeypatch):
    monkeypatch.setattr(porcelain, 'status', status_mockreturn)
    assert is_tree_clean({'staged': {}, 'unstaged': []})
Example #5
0
def test_is_tree_clean_no_staged_no_unstaged(monkeypatch):
    monkeypatch.setattr(porcelain, 'status', status_mockreturn)
    assert is_tree_clean({'staged': {}, 'unstaged': []})
Example #6
0
def test_is_tree_clean_no_staged_no_unstaged(monkeypatch):
    monkeypatch.setattr(porcelain, "status", status_mockreturn)
    assert is_tree_clean({"staged": {}, "unstaged": []})