From b520ea8bf9ed783609ab09a35e062928382b99ea Mon Sep 17 00:00:00 2001 From: Ryan Reed Date: Fri, 8 Sep 2023 20:58:39 -0400 Subject: [PATCH] Cleanup: Typos, comments, error message, and debugs --- README.md | 6 +++--- src/transpose/console.py | 2 +- tests/utils.py | 6 ++---- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index b440583..09ae9a2 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ A tool for moving and symlinking directories to a central location * [Storing a Directory](#storing-a-directory) * [Restoring a Stored Directory](#restoring-a-stored-directory) * [Applying a Previously Transpose Managed Directory](#applying-a-previously-transpose-managed-directory) - * [Modifying Tranpose Config Directly](#modifying-tranpose-config-directly) + * [Modifying Transpose Config Directly](#modifying-transpose-config-directly) * [Development](#development) @@ -107,9 +107,9 @@ transpose apply "Game1" ``` -### Modifying Tranpose Config Directly +### Modifying Transpose Config Directly -It's possible to modify the tranpose configuration file, `STORE_PATH/transpose.json`, using the console: +It's possible to modify the transpose configuration file, `STORE_PATH/transpose.json`, using the console: ``` transpose config add "NewEntry" "/path/to/location" diff --git a/src/transpose/console.py b/src/transpose/console.py index 9a38f1d..0fef4f6 100644 --- a/src/transpose/console.py +++ b/src/transpose/console.py @@ -13,7 +13,7 @@ def entry_point() -> None: try: run(args, config_path) except TransposeError as e: - print(f"Tranpose Error: {e}") + print(f"Transpose Error: {e}") def run(args, config_path) -> None: diff --git a/tests/utils.py b/tests/utils.py index 0481918..a671186 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -79,8 +79,8 @@ def setup_store(): tests-temp/ ├── source/ └── store/ - │ ├── transpose-bad.json - │ ├── transpose-invalid.json + ├── transpose-bad.json + ├── transpose-invalid.json └── transpose.json """ try: @@ -95,13 +95,11 @@ def setup_store(): bad_config = '{"version": "1.0.0"}' # Missing entries with open(str(bad_config_path), "w") as f: f.write(bad_config) - assert bad_config_path.exists() invalid_config_path = STORE_PATH.joinpath("transpose-invalid.json") invalid_config = "[{'invalidJSONFormat'}]" with open(str(invalid_config_path), "w") as f: f.write(invalid_config) - assert invalid_config_path.exists() yield finally: