From 28b8f6033a12625d52eece014473203402182d5c Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Mon, 7 Dec 2020 15:40:30 +0100 Subject: cleanup --- lesana/command.py | 6 ++++-- tests/test_collection.py | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lesana/command.py b/lesana/command.py index c3d1ba9..cb053eb 100644 --- a/lesana/command.py +++ b/lesana/command.py @@ -290,8 +290,10 @@ class Search(Command): if self.args.query == ['*']: results = collection.get_all_documents() else: - collection.start_search(' '.join(self.args.query), - sort_by=self.args.sort) + collection.start_search( + ' '.join(self.args.query), + sort_by=self.args.sort + ) if self.args.all: results = collection.get_all_search_results() else: diff --git a/tests/test_collection.py b/tests/test_collection.py index 4aa0dfe..850ac27 100644 --- a/tests/test_collection.py +++ b/tests/test_collection.py @@ -298,7 +298,6 @@ class testComplexCollection(unittest.TestCase): def test_empty_data(self): entry = lesana.Entry(self.collection) - print(entry.yaml_data) self.assertIn("name: ''", entry.yaml_data) self.assertIn('with_default', entry.yaml_data) self.assertIn('amount: 0', entry.yaml_data) -- cgit v1.2.3