summaryrefslogtreecommitdiffstats
path: root/python/tests
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-07-07 17:16:32 -0700
committerBryan Newbold <bnewbold@robocracy.org>2020-07-30 18:23:12 -0700
commitb0dd685479b6d92d5c85604180e710b13dfc88d8 (patch)
tree364ce0118dabc80f63861c5fa2537759b32e6112 /python/tests
parent6d79479347752e450e9a8eeb4fbac84691044c67 (diff)
downloadfatcat-b0dd685479b6d92d5c85604180e710b13dfc88d8.tar.gz
fatcat-b0dd685479b6d92d5c85604180e710b13dfc88d8.zip
lint coverage changes (so far)
Diffstat (limited to 'python/tests')
-rw-r--r--python/tests/web_coverage.py16
-rw-r--r--python/tests/web_search.py2
2 files changed, 3 insertions, 15 deletions
diff --git a/python/tests/web_coverage.py b/python/tests/web_coverage.py
index 3aaca07c..3af4e719 100644
--- a/python/tests/web_coverage.py
+++ b/python/tests/web_coverage.py
@@ -65,19 +65,7 @@ def test_container_coverage(app, mocker):
def test_coverage_empty_years(app, mocker):
- elastic_resp1 = {
- 'timed_out': False,
- 'aggregations': {
- 'container_stats': {'buckets': {
- 'is_preserved': {'doc_count': 461939},
- 'in_kbart': {'doc_count': 461939},
- 'in_web': {'doc_count': 2797}}}},
- 'hits': {'total': 461939, 'hits': [], 'max_score': 0.0},
- '_shards': {'successful': 5, 'total': 5, 'skipped': 0, 'failed': 0},
- 'took': 50
- }
-
- elastic_resp2 = {
+ elastic_resp = {
'took': 294,
'timed_out': False,
'_shards': {'total': 5, 'successful': 5, 'skipped': 0, 'failed': 0},
@@ -91,7 +79,7 @@ def test_coverage_empty_years(app, mocker):
es_raw = mocker.patch('elasticsearch.connection.Urllib3HttpConnection.perform_request')
es_raw.side_effect = [
- (200, {}, json.dumps(elastic_resp2)),
+ (200, {}, json.dumps(elastic_resp)),
]
rv = app.get('/container/aaaaaaaaaaaaaeiraaaaaaaaam/ia_coverage_years.svg')
diff --git a/python/tests/web_search.py b/python/tests/web_search.py
index c90ad6e5..ef736969 100644
--- a/python/tests/web_search.py
+++ b/python/tests/web_search.py
@@ -2,7 +2,7 @@
import json
import pytest
-from fatcat_web.search import get_elastic_container_random_releases, get_elastic_container_histogram
+from fatcat_web.search import get_elastic_container_random_releases
from fatcat_openapi_client.rest import ApiException
from fixtures import *