Skip to content

Commit

Permalink
updates git-status test.
Browse files Browse the repository at this point in the history
  • Loading branch information
birkin committed Jan 25, 2025
1 parent 75a8af9 commit 00f7d1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib_environment_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ def check_git_status(project_path: Path, project_email_addresses: list[list[str,
## check for uncommitted changes --------------------------
call_result: tuple[bool, dict] = lib_git_handler.run_git_status(project_path)
(ok, output) = call_result
if 'nothing to commit, working tree clean' not in output['stdout']:
message = 'Error: Uncommitted changes found.'
if 'working tree clean' not in output['stdout']:
message = 'Error: git-status check failed.'
log.exception(message)
## email project sys-admins ---------------------------------
emailer = Emailer(project_path)
Expand Down
2 changes: 1 addition & 1 deletion tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_git_status_clean(self):

def test_git_status_not_clean(self):
"""
Checks that `Changes not staged for commit` is detected properly.
Checks that various non-"clean" states are detected properly.
Assumes current-project is on branch `main`.
"""
target_dir = Path('../git_tests/check_changes_not_staged/').resolve()
Expand Down

0 comments on commit 00f7d1b

Please sign in to comment.