diff options
| author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2020-12-07 15:40:30 +0100 | 
|---|---|---|
| committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2020-12-07 15:40:30 +0100 | 
| commit | 28b8f6033a12625d52eece014473203402182d5c (patch) | |
| tree | 518bc0762f9ab2b44ffd55f37b9ec6d8efb9d9da | |
| parent | 714c30e429dab8083b9e5317209e44619d875d22 (diff) | |
cleanup
| -rw-r--r-- | lesana/command.py | 6 | ||||
| -rw-r--r-- | 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) | 
