Skip to content

Commit f57de6d

Browse files
authored
Fix rclone message on tests. (#565)
* Fix rclone message on tests. * Reverse conditinal for readability.
1 parent 1aa905e commit f57de6d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

datashuttle/utils/rclone.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,12 @@ def check_rclone_with_default_call() -> bool:
198198
def prompt_rclone_download_if_does_not_exist() -> None:
199199
"""Check that rclone is installed."""
200200
if not check_rclone_with_default_call():
201+
newline = "" if "PYTEST_CURRENT_TEST" in os.environ else "\n"
202+
201203
raise BaseException(
202-
"RClone installation not found. Install by entering "
203-
"the following into your terminal:\n"
204-
" conda install -c conda-forge rclone"
204+
f"RClone installation not found. Install by entering "
205+
f"the following into your terminal:{newline}"
206+
f" conda install -c conda-forge rclone"
205207
)
206208

207209

0 commit comments

Comments
 (0)