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'] })
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"] })
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'] })
def test_is_tree_clean_no_staged_no_unstaged(monkeypatch): monkeypatch.setattr(porcelain, 'status', status_mockreturn) assert is_tree_clean({'staged': {}, 'unstaged': []})
def test_is_tree_clean_no_staged_no_unstaged(monkeypatch): monkeypatch.setattr(porcelain, "status", status_mockreturn) assert is_tree_clean({"staged": {}, "unstaged": []})