summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-07-23 15:02:27 -0700
committerBryan Newbold <bnewbold@robocracy.org>2020-07-24 10:07:48 -0700
commitd798ee172294de09ab1621530df4e3498a17640e (patch)
tree118e77177d143580821ff9293eccf84e2de77e34 /python
parent94dc508bc54399027c3e2cff0f21e41250c81d89 (diff)
downloadfatcat-d798ee172294de09ab1621530df4e3498a17640e.tar.gz
fatcat-d798ee172294de09ab1621530df4e3498a17640e.zip
small lint fixes
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_web/search.py3
-rw-r--r--python/tests/web_search.py1
2 files changed, 1 insertions, 3 deletions
diff --git a/python/fatcat_web/search.py b/python/fatcat_web/search.py
index ca270110..1165a004 100644
--- a/python/fatcat_web/search.py
+++ b/python/fatcat_web/search.py
@@ -9,7 +9,6 @@ import datetime
from dataclasses import dataclass
from typing import List, Optional, Any
-from flask import abort, flash
import elasticsearch
from elasticsearch_dsl import Search, Q
import elasticsearch_dsl.response
@@ -43,7 +42,7 @@ class ReleaseQuery:
offset = max(0, int(offset)) if offset.isnumeric() else 0
return ReleaseQuery(
- q=query_str,
+ q=query_str,
offset=offset,
fulltext_only=bool(args.get('fulltext_only')),
container_id=container_id,
diff --git a/python/tests/web_search.py b/python/tests/web_search.py
index 460f5ee2..55e90d56 100644
--- a/python/tests/web_search.py
+++ b/python/tests/web_search.py
@@ -27,7 +27,6 @@ def test_container_search(app, mocker):
with open('tests/files/elastic_container_search.json') as f:
elastic_resp=json.loads(f.read())
-
es_raw = mocker.patch('elasticsearch.connection.Urllib3HttpConnection.perform_request')
es_raw.side_effect = [
(200, {}, json.dumps(elastic_resp)),