Пример #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']
    })
Пример #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"]
    })
Пример #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']
    })
Пример #4
0
def test_is_tree_clean_no_staged_no_unstaged(monkeypatch):
    monkeypatch.setattr(porcelain, 'status', status_mockreturn)
    assert is_tree_clean({'staged': {}, 'unstaged': []})
Пример #5
0
def test_is_tree_clean_no_staged_no_unstaged(monkeypatch):
    monkeypatch.setattr(porcelain, 'status', status_mockreturn)
    assert is_tree_clean({'staged': {}, 'unstaged': []})
Пример #6
0
def test_is_tree_clean_no_staged_no_unstaged(monkeypatch):
    monkeypatch.setattr(porcelain, "status", status_mockreturn)
    assert is_tree_clean({"staged": {}, "unstaged": []})