-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent duplicate effort on vcs revision recording of NEMO and XIOS-2…
… code repository clones (#69) * Prevent vcs revision recording of duplicate repos A check was added to 'salishsea_cmd/prepare.py' to prevent vcs revision recording of the NEMO and XIOS-2 code repositories. That duplication could happen because the code always records the vcs revision of the NEMO and XIOS-2 code repositories, but the user could cause duplicated effort by including those repositories in their YAML file list of other repos to record. Corresponding tests were updated to reflect these changes. re: issue #11 * Update test_prepare.py to use tmp_path & os.fspath This commit replaces instances of `tmpdir` with `tmp_path` from pytest and uses `pathlib` to handle file paths. Additionally, all path conversions now use `os.fspath()` for consistent, cross-platform compatibility. These changes improve code readability and ensure the test suite is using more modern file handling practices.
- Loading branch information
1 parent
bda00bc
commit 44bbbf4
Showing
2 changed files
with
84 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters