def test_stash_count_no_stash(git_repo_initial_commit): """ A unit test for gitstatus. """ stash_file = os.path.join(os.getcwd(), 'logs', 'refs', 'stash') assert_gitstatus(gitstatus.stash_count(stash_file), {"STASHED": 0})
def test_stash_count_no_stash(git_repo_initial_commit): """ A unit test for gitstatus. """ stash_file = os.path.join(os.getcwd(), 'logs', 'refs', 'stash') assert gitstatus.stash_count(stash_file) == 0
def test_stash_count_one_stash(git_repo_parse_stats): """ A unit test for gitstatus. """ stash_file = os.path.join(os.getcwd(), '.git', 'logs', 'refs', 'stash') assert_gitstatus(gitstatus.stash_count(stash_file), {"STASHED": 1})
def test_stash_count_one_stash(git_repo_parse_stats): """ A unit test for gitstatus. """ stash_file = os.path.join(os.getcwd(), '.git', 'logs', 'refs', 'stash') assert gitstatus.stash_count(stash_file) == 1