Skip to content

Commit

Permalink
fix: change test order for mvproject function
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen-RA-King committed Jul 17, 2022
1 parent 3265299 commit e87dabc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

<!--next-version-placeholder-->

## v1.1.2 (2022-07-17)
### Fix
* Add exception handling for mvproject ([`3265299`](https://github.com/Stephen-RA-King/pynball/commit/3265299ee5da6f3781d8fa3c070d38bd28bcc384))

## v1.1.1 (2022-07-17)
### Fix
* Error in entrypoint ([`2e95fb1`](https://github.com/Stephen-RA-King/pynball/commit/2e95fb141cda3645135462b160d3696f1be3d5aa))
Expand Down
4 changes: 2 additions & 2 deletions src/pynball/pynball.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,11 +710,11 @@ def mvproject(old_name: str, new_name: str) -> None:
]
rename_files = [_WORKON_HOME / old_name, _PROJECT_HOME / old_name]
try:
for file in replace_text_files:
_file_word_replace(file, old_name, new_name)
for file in rename_files:
newname = file.parent / f"{new_name}{file.suffix}"
file.rename(newname)
for file in replace_text_files:
_file_word_replace(file, old_name, new_name)
except FileNotFoundError:
message = f"Virtual environment '{old_name}' does not exist"
_feedback(message, "warning")
Expand Down

0 comments on commit e87dabc

Please sign in to comment.