From 86492318609d14ac4aeeb428170eccb9101e2ffc Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Wed, 29 Jan 2020 23:21:13 -0600 Subject: [PATCH] fix cmd recommend to use f string --- src/onionrcommands/parser/recommend.py | 2 +- tests/runtime-result.txt | 2 +- tests/test_runtime_result.py | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/onionrcommands/parser/recommend.py b/src/onionrcommands/parser/recommend.py index f90ecd5a..e5a0fc29 100644 --- a/src/onionrcommands/parser/recommend.py +++ b/src/onionrcommands/parser/recommend.py @@ -31,7 +31,7 @@ def recommend(print_default: bool = True): for word in key: if SequenceMatcher(None, tried, word).ratio() >= 0.75: logger.warn(f'{print_message} "{tried}", ' - + 'did you mean "{word}"?', + + f'did you mean "{word}"?', terminal=True) return if print_default: diff --git a/tests/runtime-result.txt b/tests/runtime-result.txt index f39e2bca..e87679e0 100644 --- a/tests/runtime-result.txt +++ b/tests/runtime-result.txt @@ -1 +1 @@ -1580360691 \ No newline at end of file +1580361700 \ No newline at end of file diff --git a/tests/test_runtime_result.py b/tests/test_runtime_result.py index 5fdd514e..f0642c36 100644 --- a/tests/test_runtime_result.py +++ b/tests/test_runtime_result.py @@ -22,5 +22,4 @@ class TestRuntimeFile(unittest.TestCase): self.assertLess(math.floor(time.time()) - int(result_file.read()), 1800) - unittest.main()